From 2059bfe2f25cc20fb8424f84e372c60c4e5beb0e Mon Sep 17 00:00:00 2001 From: Afonso Vilela Date: Sun, 4 Aug 2024 10:59:13 +0100 Subject: [PATCH] chore: add checkout-ssh-key as input to allow git commits after the checkout --- README.md | 1 + action.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index e7faa64..f49aa47 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 3e720b9..3c74ec4 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -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: