Merge pull request #86 from afonso-vilela/add-checkout-ssh-key

chore: add checkout-ssh-key as input to allow git commits after the checkout
This commit is contained in:
Slawomir Jaranowski 2024-08-05 22:14:03 +02:00 committed by GitHub
commit 8a09fe4cf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,7 @@ For default values you only need:
| checkout-ref | ref | | | checkout-ref | ref | |
| checkout-repository | repository | ${{ github.repository }} | | checkout-repository | repository | ${{ github.repository }} |
| checkout-token | token | ${{ github.token }} | | checkout-token | token | ${{ github.token }} |
| checkout-ssh-key | ssh-key | |
| checkout-persist-credentials | persist-credentials | false | | checkout-persist-credentials | persist-credentials | false |
## setup-java ## setup-java

View File

@ -39,6 +39,10 @@ inputs:
required: false required: false
default: ${{ github.token }} 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 jdk params
java-version: java-version:
@ -115,6 +119,7 @@ runs:
ref: '${{ inputs.checkout-ref }}' ref: '${{ inputs.checkout-ref }}'
repository: '${{ inputs.checkout-repository }}' repository: '${{ inputs.checkout-repository }}'
token: '${{ inputs.checkout-token }}' token: '${{ inputs.checkout-token }}'
ssh-key: '${{ inputs.checkout-ssh-key }}'
- uses: actions/setup-java@v4 - uses: actions/setup-java@v4
with: with: