Allow amended commits to be empty (#119)

Co-authored-by: Conrad <grosserconrad@gmail.com>
This commit is contained in:
Blake Dunson
2023-06-30 11:40:51 -04:00
committed by GitHub
parent a1c90f8992
commit 9aba96f268

View File

@@ -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