Skip to content

Commit

Permalink
Merge pull request #36 from s4u/chckout-path
Browse files Browse the repository at this point in the history
Add path for checkout action
  • Loading branch information
slawekjaranowski committed May 10, 2022
2 parents 22a06a2 + af6b8e1 commit 81f0483
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 81f0483

Please sign in to comment.