From e7185da60ee20d477f95a0a770fa027056894146 Mon Sep 17 00:00:00 2001 From: Sachin Chougule <87692101+chougule007@users.noreply.github.com> Date: Mon, 4 Oct 2021 15:45:58 +0530 Subject: [PATCH] Updated the entrypoint Added `-f` flag. if the tip of your current branch is behind then it will be helpful --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4e46c3e..6a05f40 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -75,4 +75,4 @@ git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE" echo "git push origin:" # --set-upstream: sets de branch when pushing to a branch that does not exist -git push "https://$USER_NAME:$API_TOKEN_GITHUB@github.com/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" --set-upstream "$TARGET_BRANCH" +git push -f "https://$USER_NAME:$API_TOKEN_GITHUB@github.com/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" --set-upstream "$TARGET_BRANCH"