diff --git a/entrypoint.sh b/entrypoint.sh index 9b2eb5e..d8d1b9a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -61,6 +61,7 @@ if _git_changed; then # Commit and push changes back if $INPUT_SAME_COMMIT; then echo "Amending the current commit..." + git pull git commit --amend --no-edit else git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"} || echo "No files added to commit"