Add path for checkout action

This commit is contained in:
Slawomir Jaranowski 2022-05-10 08:07:43 +02:00
parent 22a06a2fe3
commit af6b8e170c
No known key found for this signature in database
GPG Key ID: F8484389379ACEAC
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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: