chore: add checkout-ssh-key as input to allow git commits after the checkout

This commit is contained in:
Afonso Vilela
2024-08-04 10:59:13 +01:00
parent 2f53a7669c
commit 2059bfe2f2
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,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

@ -35,6 +35,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:
@ -110,6 +114,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: