Skip to content

Commit

Permalink
chore(github action workflow): define branch for checkout to make sur…
Browse files Browse the repository at this point in the history
…e intermediate commits are included

without defining branch, the second checkout would skip previous automatic commits
see actions/checkout#439
  • Loading branch information
Valentin Deyringer committed May 2, 2022
1 parent 57a0713 commit b5f97fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref_name }}
- uses: actions/setup-java@v1
with:
java-version: 11
Expand Down Expand Up @@ -88,6 +90,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref_name }}
- uses: actions/setup-java@v1
with:
java-version: 11
Expand Down

0 comments on commit b5f97fc

Please sign in to comment.