Skip to content

Commit b653005

Browse files
committed
also build merge sha
1 parent c680ef2 commit b653005

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
validate:
7979
runs-on: ubuntu-latest
8080
name: Compile and Check Java
81+
strategy:
82+
fail-fast: false
83+
matrix:
84+
checkout-ref: [ ${{ github.event.pull_request.head.sha }}, ${{ github.sha }} ]
8185
outputs:
8286
is-draft: ${{ steps.check-draft-pr.outputs.is-draft }}
8387
steps:
@@ -95,7 +99,7 @@ jobs:
9599
uses: actions/checkout@v4
96100
with:
97101
persist-credentials: false
98-
ref: ${{ github.event.pull_request.head.sha }}
102+
ref: ${{ matrix.checkout-ref }}
99103
- name: Setup Python
100104
uses: ./.github/actions/setup-python
101105
- name: Setup Gradle

0 commit comments

Comments
 (0)