mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
Allow amended commits to be empty (#119)
Co-authored-by: Conrad <grosserconrad@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ if _git_changed; then
|
|||||||
if $INPUT_SAME_COMMIT; then
|
if $INPUT_SAME_COMMIT; then
|
||||||
echo "Amending the current commit..."
|
echo "Amending the current commit..."
|
||||||
git pull
|
git pull
|
||||||
git commit --amend --no-edit
|
git commit --amend --no-edit --allow-empty
|
||||||
git push origin -f
|
git push origin -f
|
||||||
else
|
else
|
||||||
if [ "$INPUT_COMMIT_DESCRIPTION" != "" ]; then
|
if [ "$INPUT_COMMIT_DESCRIPTION" != "" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user