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