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 the ability to specify ref for checkout action (#52)
This commit is contained in:
parent
721df57437
commit
e912d59387
@ -33,6 +33,7 @@ or use automatic tools like [Dependabot](https://docs.github.com/en/code-securit
|
||||
|------------------------------|---------------------|---------|
|
||||
| checkout-fetch-depth | fetch-depth | |
|
||||
| checkout-path | path | |
|
||||
| checkout-ref | ref | |
|
||||
| checkout-persist-credentials | persist-credentials | false |
|
||||
|
||||
## setup-java
|
||||
|
||||
@ -21,6 +21,9 @@ inputs:
|
||||
default: 'false'
|
||||
required: false
|
||||
|
||||
checkout-ref:
|
||||
description: 'The branch, tag, or SHA of the repository to clone'
|
||||
required: false
|
||||
|
||||
# java jdk params
|
||||
|
||||
@ -80,6 +83,7 @@ runs:
|
||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||
path: '${{ inputs.checkout-path }}'
|
||||
persist-credentials: '${{ inputs.checkout-persist-credentials }}'
|
||||
ref: '${{ inputs.checkout-ref }}'
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user