mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#3602 Fix setup-java action for release workflow
This commit is contained in:
parent
9a5e6b1892
commit
8e53b4181f
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -10,10 +10,6 @@ on:
|
|||||||
description: 'Next version'
|
description: 'Next version'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
env:
|
|
||||||
JAVA_VERSION: '11'
|
|
||||||
JAVA_DISTRO: 'zulu'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
# This job has been inspired by the moditect release (https://github.com/moditect/moditect/blob/main/.github/workflows/release.yml)
|
# This job has been inspired by the moditect release (https://github.com/moditect/moditect/blob/main/.github/workflows/release.yml)
|
||||||
@ -26,8 +22,8 @@ jobs:
|
|||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: ${{ vars.JAVA_VERSION }}
|
java-version: 11
|
||||||
distribution: ${{ vars.JAVA_DISTRO }}
|
distribution: 'zulu'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Set release version
|
- name: Set release version
|
||||||
@ -99,12 +95,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GIT_WEBSITE_ACCESS_TOKEN }}
|
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
|
- name: Download assets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user