Skip to content

Commit

Permalink
Fix repository checkout
Browse files Browse the repository at this point in the history
Dont always check out master
  • Loading branch information
choweiyuan committed Sep 6, 2023
1 parent 97f9333 commit 79321bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref || github.ref }}
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
Expand Down

0 comments on commit 79321bf

Please sign in to comment.