Skip to content

Commit d638420

Browse files
authored
[CI] Fixed checkout commit for PR in case of pull_request_target (#6573)
Fixed checkout commit for PR in case of pull_request_target
1 parent decc8fe commit d638420

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/sycl_precommit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v2
2727
with:
28+
ref: ${{ github.event.pull_request.head.sha }}
2829
persist-credentials: false
2930
fetch-depth: 2
3031
- name: Run clang-format
@@ -46,6 +47,7 @@ jobs:
4647
uses: ./.github/workflows/sycl_linux_build_and_test.yml
4748
secrets: inherit
4849
with:
50+
build_ref: ${{ github.event.pull_request.head.sha }}
4951
build_cache_root: "/__w/"
5052
build_cache_size: "8G"
5153
build_artifact_suffix: "default"

0 commit comments

Comments
 (0)