From fde6ec771e30fcbbc1cfdf0060bf64a77104aa64 Mon Sep 17 00:00:00 2001 From: Conrad Date: Sat, 17 Oct 2020 20:44:21 +0200 Subject: [PATCH] Testing with force push option --- entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a06a729..19354d5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,8 +51,6 @@ if _git_changed; then # Commit and push changes back if $INPUT_SAME_COMMIT; then echo "Amending the current commit..." - git pull - git add * git commit --amend --no-edit else if $INPUT_ONLY_CHANGED; then @@ -66,7 +64,7 @@ if _git_changed; then fi 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" fi - git push origin + git push -f origin echo "Changes pushed successfully." fi else