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
Add persist-credentials for checkout action with default false
This commit is contained in:
parent
81f0483288
commit
f0414a8351
10
README.md
10
README.md
@ -29,11 +29,11 @@ or use automatic tools like [Dependabot](https://docs.github.com/en/code-securit
|
||||
|
||||
## checkout
|
||||
|
||||
| params | destination |
|
||||
|----------------------|-------------|
|
||||
| checkout-fetch-depth | fetch-depth |
|
||||
| checkout-path | path |
|
||||
|
||||
| params | destination | default |
|
||||
|------------------------------|---------------------|---------|
|
||||
| checkout-fetch-depth | fetch-depth | |
|
||||
| checkout-path | path | |
|
||||
| checkout-persist-credentials | persist-credentials | false |
|
||||
|
||||
## setup-java
|
||||
|
||||
|
||||
@ -16,6 +16,12 @@ inputs:
|
||||
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
||||
required: false
|
||||
|
||||
checkout-persist-credentials:
|
||||
description: 'Whether to configure the token or SSH key with the local git config'
|
||||
default: 'false'
|
||||
required: false
|
||||
|
||||
|
||||
# java jdk params
|
||||
|
||||
java-version:
|
||||
@ -73,6 +79,7 @@ runs:
|
||||
with:
|
||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||
path: '${{ inputs.checkout-path }}'
|
||||
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user