Skip to content

Commit b5f97fc

Browse files
author
Valentin Deyringer
committed
chore(github action workflow): define branch for checkout to make sure intermediate commits are included
without defining branch, the second checkout would skip previous automatic commits see actions/checkout#439
1 parent 57a0713 commit b5f97fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/github-actions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- uses: actions/checkout@v2
51+
with:
52+
ref: ${{ github.ref_name }}
5153
- uses: actions/setup-java@v1
5254
with:
5355
java-version: 11
@@ -88,6 +90,8 @@ jobs:
8890
runs-on: ubuntu-latest
8991
steps:
9092
- uses: actions/checkout@v2
93+
with:
94+
ref: ${{ github.ref_name }}
9195
- uses: actions/setup-java@v1
9296
with:
9397
java-version: 11

0 commit comments

Comments
 (0)