Skip to content

Commit

Permalink
#3602 Fix setup-java action for release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed May 11, 2024
1 parent 9a5e6b1 commit 8e53b41
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
description: 'Next version'
required: false

env:
JAVA_VERSION: '11'
JAVA_DISTRO: 'zulu'

jobs:
release:
# This job has been inspired by the moditect release (https://github.com/moditect/moditect/blob/main/.github/workflows/release.yml)
Expand All @@ -26,8 +22,8 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}
java-version: 11
distribution: 'zulu'
cache: maven

- name: Set release version
Expand Down Expand Up @@ -99,12 +95,6 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GIT_WEBSITE_ACCESS_TOKEN }}

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JAVA_VERSION }}
distribution: ${{ vars.JAVA_DISTRO }}

- name: Download assets
shell: bash
run: |
Expand Down

0 comments on commit 8e53b41

Please sign in to comment.