Updated the entrypoint

Added `-f` flag. if the tip of your current branch is behind then it will be helpful
This commit is contained in:
Sachin Chougule 2021-10-04 15:45:58 +05:30 committed by GitHub
parent 2ebe0cc15f
commit e7185da60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,4 +75,4 @@ git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE"
echo "git push origin:" echo "git push origin:"
# --set-upstream: sets de branch when pushing to a branch that does not exist # --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"