File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ permissions:
4141
4242jobs :
4343 e2e-build-hw :
44- if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks will not have the HW
4544 name : Build SYCL, UR, run E2E
4645 strategy :
4746 matrix :
6665 ls -la ./
6766 rm -rf ./* || true
6867
69- - uses : xt0rted/pull-request-comment-branch@d97294d304604fa98a2600a6e2f916a84b596dc7 # v2.0.0
70- id : comment-branch
71- if : ${{ always() && inputs.trigger != 'schedule' }}
72-
7368 - name : Add comment to PR
7469 uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
7570 if : ${{ always() && inputs.trigger != 'schedule' }}
9085 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9186 with :
9287 path : ur-repo
93- ref : ${{ steps.comment-branch.outputs.head_ref }}
88+
89+ # On issue_comment trigger (for PRs) we need to fetch special ref for
90+ # proper PR's merge commit. Note, this ref may be absent if the PR is already merged.
91+ - name : Fetch PR's merge commit
92+ if : ${{ inputs.trigger != 'schedule' }}
93+ working-directory : ${{github.workspace}}/ur-repo
94+ env :
95+ PR_NO : ${{github.event.issue.number}}
96+ run : |
97+ git fetch -- https://github.com/${{github.repository}} +refs/pull/$PR_NO/*:refs/remotes/origin/pr/$PR_NO/*
98+ git checkout origin/pr/XXX/merge
9499
95100 - name : Checkout SYCL
96101 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
You can’t perform that action at this time.
0 commit comments