Skip to content

Commit 3e01f39

Browse files
authored
Merge pull request #1387 from pbalcer/status-ref
use correct checkout ref in e2e and add a status comment
2 parents 87b0d90 + 38f4d7f commit 3e01f39

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/e2e_core.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
8585
with:
8686
path: ur-repo
87+
ref: ${{ steps.comment-branch.outputs.head_ref }}
8788

8889
- name: Checkout SYCL
8990
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -174,4 +175,22 @@ jobs:
174175
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
175176
176177
- name: Run e2e tests
178+
id: tests
177179
run: ninja -C build-e2e check-sycl-e2e
180+
181+
- name: Add comment to PR
182+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
183+
if: always()
184+
with:
185+
script: |
186+
const adapter = '${{ matrix.adapter.name }}';
187+
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
188+
const status = ${{ steps.tests.outcome }};
189+
const body = `E2E ${adapter} build: \n${url}\n Status: ${status}`;
190+
191+
github.rest.issues.createComment({
192+
issue_number: context.issue.number,
193+
owner: context.repo.owner,
194+
repo: context.repo.repo,
195+
body: body
196+
})

0 commit comments

Comments
 (0)