mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
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
|
commit_message: Apply automatic changes
|
||||||
branch: ${{ github.head_ref }}
|
branch: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
# Optional git params
|
||||||
|
commit_options: '--no-verify --signoff'
|
||||||
|
|
||||||
# Optional glob pattern of files which should be added to the commit
|
# Optional glob pattern of files which should be added to the commit
|
||||||
file_pattern: src/\*.js
|
file_pattern: src/\*.js
|
||||||
env:
|
env:
|
||||||
|
@ -7,6 +7,9 @@ inputs:
|
|||||||
commit_message:
|
commit_message:
|
||||||
description: Commit message
|
description: Commit message
|
||||||
required: true
|
required: true
|
||||||
|
commit_options:
|
||||||
|
description: Commit options
|
||||||
|
required: false
|
||||||
branch:
|
branch:
|
||||||
description: Branch where changes should be pushed too
|
description: Branch where changes should be pushed too
|
||||||
required: true
|
required: true
|
||||||
|
@ -38,7 +38,7 @@ then
|
|||||||
git add $INPUT_FILE_PATTERN
|
git add $INPUT_FILE_PATTERN
|
||||||
fi
|
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"
|
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user