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
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b03f80a9bf | ||
|
|
bf6bdba903 | ||
|
|
6c4e9964d4 | ||
|
|
6ad09a30aa | ||
|
|
64c378ccfd | ||
|
|
53c9cfd053 | ||
|
|
99433ad2a6 | ||
|
|
4a57038947 | ||
|
|
cadd5249e2 | ||
|
|
194b328cfe | ||
|
|
7227538596 | ||
|
|
e49e3fe78c | ||
|
|
b77843ff24 | ||
|
|
a8a4c2d97e |
1
.github/workflows/release-drafter.yml
vendored
1
.github/workflows/release-drafter.yml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
- 'main'
|
- 'main'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
|
|||||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -19,13 +19,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
os: [ 'ubuntu-latest', 'windows-latest', 'macOS-latest' ]
|
||||||
java: [ '8', '11', '17', '21' ]
|
java: [ '8', '11', '17', '21' ]
|
||||||
maven: [ '3.8.8', '3.9.9' ]
|
maven: [ '3.8.8', '3.9.11' ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
@ -41,11 +41,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|
||||||
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.9
|
- run: mvn -V validate -Drequire.java=17 -Drequire.maven=3.9.11
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
test-ok:
|
test-ok:
|
||||||
|
|||||||
@ -74,7 +74,7 @@ So we can use for action:
|
|||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|---------------|---------------|---------|
|
|---------------|---------------|---------|
|
||||||
| maven-version | maven-version | 3.9.9 |
|
| maven-version | maven-version | 3.9.11 |
|
||||||
|
|
||||||
## maven-settings-action
|
## maven-settings-action
|
||||||
|
|
||||||
|
|||||||
10
action.yml
10
action.yml
@ -86,7 +86,7 @@ inputs:
|
|||||||
# maven version
|
# maven version
|
||||||
maven-version:
|
maven-version:
|
||||||
description: 'The Maven version to set up'
|
description: 'The Maven version to set up'
|
||||||
default: '3.9.9'
|
default: '3.9.11'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
# maven settings.xml
|
# maven settings.xml
|
||||||
@ -132,7 +132,7 @@ runs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
if: inputs.checkout-enabled == 'true'
|
if: inputs.checkout-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
@ -144,14 +144,14 @@ runs:
|
|||||||
token: '${{ inputs.checkout-token }}'
|
token: '${{ inputs.checkout-token }}'
|
||||||
ssh-key: '${{ inputs.checkout-ssh-key }}'
|
ssh-key: '${{ inputs.checkout-ssh-key }}'
|
||||||
|
|
||||||
- uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b
|
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654
|
||||||
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 }}'
|
||||||
jdkFile: '${{ inputs.java-jdkFile }}'
|
jdkFile: '${{ inputs.java-jdkFile }}'
|
||||||
|
|
||||||
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||||
if: inputs.cache-enabled == 'true'
|
if: inputs.cache-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@ -170,7 +170,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
maven-version: '${{ inputs.maven-version }}'
|
maven-version: '${{ inputs.maven-version }}'
|
||||||
|
|
||||||
- uses: s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b # v3.1.0
|
- uses: s4u/maven-settings-action@894661b3ddae382f1ae8edbeab60987e08cf0788 # v4.0.0
|
||||||
with:
|
with:
|
||||||
servers: '${{ inputs.settings-servers }}'
|
servers: '${{ inputs.settings-servers }}'
|
||||||
mirrors: '${{ inputs.settings-mirrors }}'
|
mirrors: '${{ inputs.settings-mirrors }}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user