Skip to content

Commit 0015467

Browse files
[CI][SYCL] Use github.sha instead of github.ref in sycl_*build_and*test.yml (#8913)
1 parent 9eb1184 commit 0015467

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- uses: ./actions/cached_checkout
8383
with:
8484
path: src
85-
ref: ${{ inputs.build_ref || github.ref }}
85+
ref: ${{ inputs.build_ref || github.sha }}
8686
cache_path: "/__w/repo_cache/"
8787
- name: Configure
8888
env:
@@ -220,7 +220,7 @@ jobs:
220220
with:
221221
persist-credentials: false
222222
path: llvm
223-
ref: ${{ inputs.build_ref || github.ref }}
223+
ref: ${{ inputs.build_ref || github.sha }}
224224
# TODO should this action be packed into container as well?
225225
- uses: ./llvm/devops/actions/e2e-tests
226226
name: Run SYCL End-to-End tests

.github/workflows/sycl_windows_build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
with:
3131
path: src
32-
ref: ${{ inputs.build_ref || github.ref }}
32+
ref: ${{ inputs.build_ref || github.sha }}
3333
fetch-depth: 1
3434
- name: Register cleanup after job is finished
3535
uses: ./src/devops/actions/cleanup

0 commit comments

Comments
 (0)