Skip to content

Commit

Permalink
Merge pull request oneapi-src#1387 from pbalcer/status-ref
Browse files Browse the repository at this point in the history
use correct checkout ref in e2e and add a status comment
  • Loading branch information
pbalcer committed Feb 27, 2024
2 parents 87b0d90 + 38f4d7f commit 3e01f39
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/e2e_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ur-repo
ref: ${{ steps.comment-branch.outputs.head_ref }}

- name: Checkout SYCL
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -174,4 +175,22 @@ jobs:
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
- name: Run e2e tests
id: tests
run: ninja -C build-e2e check-sycl-e2e

- name: Add comment to PR
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: always()
with:
script: |
const adapter = '${{ matrix.adapter.name }}';
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
const status = ${{ steps.tests.outcome }};
const body = `E2E ${adapter} build: \n${url}\n Status: ${status}`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: body
})

0 comments on commit 3e01f39

Please sign in to comment.