diff --git a/README.md b/README.md index b1921b1..d28cd21 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 6ef7083..20977ba 100644 --- a/action.yml +++ b/action.yml @@ -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: