Skip to content

Commit

Permalink
Add path for checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 10, 2022
1 parent 22a06a2 commit af6b8e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 af6b8e1

Please sign in to comment.