From ddfa7dc4b5f8fa02675fe5da02ae15c9722367f0 Mon Sep 17 00:00:00 2001 From: Faster Speeding Date: Mon, 2 Jan 2023 10:08:21 +0000 Subject: [PATCH] Support passing through overrides for the commit author --- action.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/action.yml b/action.yml index 3775bd7..f2f84da 100644 --- a/action.yml +++ b/action.yml @@ -39,6 +39,24 @@ inputs: all other events. `auto` is the default value. required: false default: auto + git-config-name: + default: '' + description: > + Allows you to customize the name that is attached to the GitHub config + which is used when pushing the deployment commits. + + If this is not included it will use the name in the GitHub context, + followed by the name of the action. + required: false + git-config-email: + default: '' + description: > + Allows you to customize the email that is attached to the GitHub config + which is used when pushing the deployment commits. + + If this is not included it will use the email in the GitHub context, + followed by a generic noreply GitHub email.' + required: false outputs: deployment-url: @@ -98,6 +116,8 @@ runs: target-folder: ${{ env.targetdir }} commit-message: Deploy preview for PR ${{ env.pr }} 🛫 force: false + git-config-name: ${{ inputs.git-config-name }} + git-config-email: ${{ inputs.git-config-email }} - name: Expose deployment URL id: url