Skip to content

Commit

Permalink
Merge pull request #37 from s4u/checkput-persist-cred
Browse files Browse the repository at this point in the history
Add persist-credentials for checkout action with default false
  • Loading branch information
slawekjaranowski committed May 10, 2022
2 parents 81f0483 + f0414a8 commit 63e4cd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -29,11 +29,11 @@ or use automatic tools like [Dependabot](https://docs.github.com/en/code-securit

## checkout

| params | destination |
|----------------------|-------------|
| checkout-fetch-depth | fetch-depth |
| checkout-path | path |

| params | destination | default |
|------------------------------|---------------------|---------|
| checkout-fetch-depth | fetch-depth | |
| checkout-path | path | |
| checkout-persist-credentials | persist-credentials | false |

## setup-java

Expand Down
7 changes: 7 additions & 0 deletions action.yml
Expand Up @@ -16,6 +16,12 @@ inputs:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
required: false

checkout-persist-credentials:
description: 'Whether to configure the token or SSH key with the local git config'
default: 'false'
required: false


# java jdk params

java-version:
Expand Down Expand Up @@ -73,6 +79,7 @@ runs:
with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
path: '${{ inputs.checkout-path }}'
persist-credentials: '${{ inputs.checkout-persist-credentials }}'

- uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 63e4cd9

Please sign in to comment.