Skip to content

Commit ccf2b6b

Browse files
debug
1 parent cc268e5 commit ccf2b6b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/e2e_core.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ permissions:
4141

4242
jobs:
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:
@@ -66,10 +65,6 @@ jobs:
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' }}
@@ -90,7 +85,18 @@ jobs:
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/${PR_NO}/merge
99+
git rev-parse origin/pr/${PR_NO}/merge
94100
95101
- name: Checkout SYCL
96102
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

0 commit comments

Comments
 (0)