Skip to content

Commit

Permalink
Try only enabling one setup-java action run.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Jul 24, 2024
1 parent 135cacb commit 4b298cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ jobs:
with:
submodules: "recursive"

- uses: "actions/setup-java@v4"
- if: >-
startsWith(github.ref, 'refs/heads/v') != true || github.event_name != 'workflow_dispatch'
uses: "actions/setup-java@v4"
with:
java-version: "${{env.JAVA_VERSION}}"
distribution: "${{env.JAVA_DIST}}"
Expand Down

0 comments on commit 4b298cd

Please sign in to comment.