Skip to content

Commit

Permalink
chore: add checkout-ssh-key as input to allow git commits after the c…
Browse files Browse the repository at this point in the history
…heckout
  • Loading branch information
Afonso Vilela committed Aug 4, 2024
1 parent 2f53a76 commit 2059bfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ For default values you only need:
| checkout-ref | ref | |
| checkout-repository | repository | ${{ github.repository }} |
| checkout-token | token | ${{ github.token }} |
| checkout-ssh-key | ssh-key | |
| checkout-persist-credentials | persist-credentials | false |
## setup-java
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ inputs:
required: false
default: ${{ github.token }}

checkout-ssh-key:
description: 'SSH key used to fetch the repository. It allows to run authenticated git commands'
required: false

# java jdk params

java-version:
Expand Down Expand Up @@ -110,6 +114,7 @@ runs:
ref: '${{ inputs.checkout-ref }}'
repository: '${{ inputs.checkout-repository }}'
token: '${{ inputs.checkout-token }}'
ssh-key: '${{ inputs.checkout-ssh-key }}'

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

0 comments on commit 2059bfe

Please sign in to comment.