diff --git a/README.md b/README.md index 3b655d1..f8802a8 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/actions.yml b/actions.yml index b58171f..6ef6985 100644 --- a/actions.yml +++ b/actions.yml @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index 609e9b7..da2f1a2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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