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 361ec6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ jobs:
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- run: echo "🔎 The name of your branch is ${{ github.head_ref || github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref || github.ref }}
- uses: actions/setup-java@v3
with:
distribution: temurin
Expand Down

0 comments on commit 361ec6c

Please sign in to comment.