Skip to content

Commit

Permalink
checkout main branch to workaround maven limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Dec 10, 2023
1 parent 0a1d2bd commit 9c08697
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
release:
needs: [ build ]
runs-on: macos-latest
# maven created a new tag but we only trigger on 'pre-' prefixed tags in 'on:' clause above
if: ${{ github.ref_type == 'tag' }}
steps:
- uses: actions/checkout@v3
Expand All @@ -63,6 +64,8 @@ jobs:
working-directory: getargv
- uses: actions/checkout@v3
with:
# maven needs to be on a branch, not a tag, but we trigger on a tag...
ref: main
path: getargv.java
- name: Set up JDK
uses: actions/setup-java@v3
Expand Down

0 comments on commit 9c08697

Please sign in to comment.