Skip to content

Commit 50dc506

Browse files
committed
Update CI to correctly checkout a PR
1 parent 5640164 commit 50dc506

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
@@ -63,7 +63,7 @@ jobs:
6363
profile: 'Oracle-21'
6464
uses: ./.github/workflows/ci.yml
6565
with:
66-
branch: ${{ github.head_ref || github.ref_name }}
66+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
6767
jdk: ${{ matrix.jdk }}
6868
os: ${{ matrix.os }}
6969
profile: ${{ matrix.profile }}
@@ -75,6 +75,6 @@ jobs:
7575
needs: CI
7676
uses: ./.github/workflows/deploy.yml
7777
with:
78-
branch: ${{ github.head_ref || github.ref_name }}
78+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}
7979
jdk: 8
8080
secrets: inherit

0 commit comments

Comments
 (0)