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 path for checkout action
This commit is contained in:
parent
22a06a2fe3
commit
af6b8e170c
@ -25,11 +25,14 @@ or use automatic tools like [Dependabot](https://docs.github.com/en/code-securit
|
||||
|
||||
# Params mapping for sub actions
|
||||
|
||||
**Notice** when used this action you should not used mentioned below actions again.
|
||||
|
||||
## checkout
|
||||
|
||||
| params | destination |
|
||||
|----------------------|-------------|
|
||||
| checkout-fetch-depth | fetch-depth |
|
||||
| checkout-path | path |
|
||||
|
||||
|
||||
## setup-java
|
||||
|
||||
@ -12,6 +12,10 @@ inputs:
|
||||
description: 'Number of commits to fetch'
|
||||
required: false
|
||||
|
||||
checkout-path:
|
||||
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
||||
required: false
|
||||
|
||||
# java jdk params
|
||||
|
||||
java-version:
|
||||
@ -68,6 +72,7 @@ runs:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||
path: '${{ inputs.checkout-path }}'
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user