From 9c0869746b314a738a88b8694e6cc5214c809f27 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Sun, 10 Dec 2023 13:45:52 -0700 Subject: [PATCH] checkout main branch to workaround maven limitation --- .github/workflows/java.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index f3aa83c..2e135bd 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -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 @@ -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