mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06:00
Update entrypoint.sh
This commit is contained in:
parent
07c4d7b3de
commit
8cf341762d
@ -170,6 +170,8 @@ echo "[+] git diff-index:"
|
||||
# git diff-index : to avoid doing the git commit failing if there are no changes to be commit
|
||||
git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE"
|
||||
|
||||
echo "[+] Pushing git commit"
|
||||
echo "[+] Pushing git commit ($GIT_CMD_REPOSITORY --set-upstream $TARGET_BRANCH)"
|
||||
# --set-upstream: sets de branch when pushing to a branch that does not exist
|
||||
git push "$GIT_CMD_REPOSITORY" --set-upstream "$TARGET_BRANCH"
|
||||
|
||||
echo "[+] Push done"
|
||||
|
Loading…
x
Reference in New Issue
Block a user