Support commit options, update README.md accordingly

This commit is contained in:
gomorizsolt 2019-10-31 09:02:56 +01:00
parent a607c57aa4
commit a65a3a47cd
3 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,9 @@ Add the following step at the end of your job.
commit_message: Apply automatic changes
branch: ${{ github.head_ref }}
# Optional git params
commit_options: '--no-verify --signoff'
# Optional glob pattern of files which should be added to the commit
file_pattern: src/\*.js
env:

View File

@ -7,6 +7,9 @@ inputs:
commit_message:
description: Commit message
required: true
commit_options:
description: Commit options
required: false
branch:
description: Branch where changes should be pushed too
required: true

View File

@ -38,7 +38,7 @@ then
git add $INPUT_FILE_PATTERN
fi
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>"
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" $INPUT_COMMIT_OPTIONS
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
else