Support commit options, update README.md accordingly
This commit is contained in:
parent
a607c57aa4
commit
a65a3a47cd
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user