Skip to content

Commit a40936b

Browse files
committed
Update CI to correctly checkout a PR
1 parent 040f71c commit a40936b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-5.x.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
jdk: 17
2222
uses: ./.github/workflows/ci.yml
2323
with:
24-
branch: ${{ github.head_ref || github.ref_name }}
24+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
2525
jdk: ${{ matrix.jdk }}
2626
os: ${{ matrix.os }}
2727
secrets: inherit
@@ -30,6 +30,6 @@ jobs:
3030
needs: CI
3131
uses: ./.github/workflows/deploy.yml
3232
with:
33-
branch: ${{ github.head_ref || github.ref_name }}
33+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
3434
jdk: 8
3535
secrets: inherit

0 commit comments

Comments
 (0)