Add commit_author input option

This commit is contained in:
Stefan Zweifel 2020-02-04 21:02:40 +01:00
parent d47024e59c
commit 0822a9b930
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,10 @@ inputs:
description: Email address used for the commit user
required: false
default: actions@github.com
commit_author:
description: Value used for the commit author
required: false
default: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
runs:
using: 'docker'

View File

@ -62,7 +62,7 @@ _add_files() {
_local_commit() {
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}"
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
}
_push_to_github() {