Skip to content

Commit

Permalink
Support commit options, update README.md accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
gomorizsolt committed Oct 31, 2019
1 parent a607c57 commit a65a3a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a65a3a4

Please sign in to comment.