mirror of
http://43.153.184.91:8080/https://github.com/s4u/setup-maven-action.git
synced 2026-01-27 11:13:00 +08:00
Don't reinstall the same version of Maven
This commit is contained in:
parent
b53dd2825a
commit
d36f1fc23e
10
action.yml
10
action.yml
@ -83,13 +83,13 @@ runs:
|
||||
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
|
||||
|
||||
- uses: stCarolas/setup-maven@v4.3
|
||||
with:
|
||||
maven-version: '${{ inputs.maven-version }}'
|
||||
- name: Installed Maven version
|
||||
run: echo "::set-output name=version::$(mvn -q -v)"
|
||||
shell: bash
|
||||
id: current-maven
|
||||
|
||||
# try again due to macOS timeouts
|
||||
- uses: stCarolas/setup-maven@v4.3
|
||||
if: failure()
|
||||
if: inputs.maven-version != steps.current-maven.outputs.version
|
||||
with:
|
||||
maven-version: '${{ inputs.maven-version }}'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user