mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-18 00:00:11 +08:00
20
action.yml
20
action.yml
@ -65,26 +65,16 @@ runs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- run: echo "::group::Checkout"
|
|
||||||
shell: bash
|
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
- run: echo "::endgroup::"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: echo "::group::Setup Java"
|
|
||||||
shell: bash
|
|
||||||
- uses: actions/setup-java@v2.3.0
|
- uses: actions/setup-java@v2.3.0
|
||||||
with:
|
with:
|
||||||
overwrite-settings: false
|
overwrite-settings: false
|
||||||
java-version: '${{ inputs.java-version }}'
|
java-version: '${{ inputs.java-version }}'
|
||||||
distribution: '${{ inputs.java-distribution }}'
|
distribution: '${{ inputs.java-distribution }}'
|
||||||
- run: echo "::endgroup::"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: echo "::group::Setup Cache"
|
|
||||||
shell: bash
|
|
||||||
- uses: actions/cache@v2.1.6
|
- uses: actions/cache@v2.1.6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@ -92,24 +82,14 @@ runs:
|
|||||||
${{ inputs.cache-path-add }}
|
${{ inputs.cache-path-add }}
|
||||||
key: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-${{ hashFiles('**/pom.xml') }}
|
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 }}-
|
restore-keys: ${{ inputs.cache-prefix }}${{ runner.os }}-jdk${{ inputs.java-version }}-${{ inputs.java-distribution }}-maven${{ inputs.maven-version }}-
|
||||||
- run: echo "::endgroup::"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: echo "::group::Setup Maven Version"
|
|
||||||
shell: bash
|
|
||||||
- uses: stCarolas/setup-maven@v4.1
|
- uses: stCarolas/setup-maven@v4.1
|
||||||
with:
|
with:
|
||||||
maven-version: '${{ inputs.maven-version }}'
|
maven-version: '${{ inputs.maven-version }}'
|
||||||
- run: echo "::endgroup::"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: echo "::group::Prepare Maven settings.xml"
|
|
||||||
shell: bash
|
|
||||||
- uses: s4u/maven-settings-action@v2.4.1
|
- uses: s4u/maven-settings-action@v2.4.1
|
||||||
with:
|
with:
|
||||||
servers: '${{ inputs.settings-servers}}'
|
servers: '${{ inputs.settings-servers}}'
|
||||||
mirrors: '${{ inputs.settings-mirrors}}'
|
mirrors: '${{ inputs.settings-mirrors}}'
|
||||||
properties: '${{ inputs.settings-properties}}'
|
properties: '${{ inputs.settings-properties}}'
|
||||||
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots}}'
|
sonatypeSnapshots: '${{ inputs.settings-sonatypeSnapshots}}'
|
||||||
- run: echo "::endgroup::"
|
|
||||||
shell: bash
|
|
||||||
|
|||||||
Reference in New Issue
Block a user