Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing through overrides for the commit author #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down