mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-18 00:00:11 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 57ca7f1a81 | |||
| 41e894b5c6 |
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|
||||||
|
|||||||
14
README.md
14
README.md
@ -26,12 +26,14 @@ For default values you only need:
|
|||||||
|
|
||||||
## checkout
|
## checkout
|
||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|------------------------------|---------------------|---------|
|
|------------------------------|---------------------|--------------------------|
|
||||||
| checkout-fetch-depth | fetch-depth | |
|
| checkout-fetch-depth | fetch-depth | |
|
||||||
| checkout-path | path | |
|
| checkout-path | path | |
|
||||||
| checkout-ref | ref | |
|
| checkout-ref | ref | |
|
||||||
| checkout-persist-credentials | persist-credentials | false |
|
| checkout-repository | repository | ${{ github.repository }} |
|
||||||
|
| checkout-token | token | ${{ github.token }} |
|
||||||
|
| checkout-persist-credentials | persist-credentials | false |
|
||||||
|
|
||||||
## setup-java
|
## setup-java
|
||||||
|
|
||||||
|
|||||||
14
action.yml
14
action.yml
@ -25,6 +25,16 @@ inputs:
|
|||||||
description: 'The branch, tag, or SHA of the repository to clone'
|
description: 'The branch, tag, or SHA of the repository to clone'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
checkout-repository:
|
||||||
|
description: 'The repository to checkout if not the repository that triggered the action. For use when building GitHub Apps'
|
||||||
|
required: false
|
||||||
|
default: ${{ github.repository }}
|
||||||
|
|
||||||
|
checkout-token:
|
||||||
|
description: 'Token to use for checkout if checking out a repository out of scope for GITHUB_TOKEN'
|
||||||
|
required: false
|
||||||
|
default: ${{ github.token }}
|
||||||
|
|
||||||
# java jdk params
|
# java jdk params
|
||||||
|
|
||||||
java-version:
|
java-version:
|
||||||
@ -79,12 +89,14 @@ runs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
path: '${{ inputs.checkout-path }}'
|
path: '${{ inputs.checkout-path }}'
|
||||||
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
||||||
ref: '${{ inputs.checkout-ref }}'
|
ref: '${{ inputs.checkout-ref }}'
|
||||||
|
repository: '${{ inputs.checkout-repository }}'
|
||||||
|
token: '${{ inputs.checkout-token }}'
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user