mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 16:16:09 -07:00
Use long command option instead of short and adds comment
Thanks @TomasVotruba
This commit is contained in:
parent
9852c86807
commit
edbe7a0efc
|
@ -48,4 +48,5 @@ git status
|
||||||
git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE"
|
git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE"
|
||||||
|
|
||||||
echo "Pushing git commit"
|
echo "Pushing git commit"
|
||||||
git push origin -u "$TARGET_BRANCH"
|
# --set-upstream: sets de branch when pushing to a remote empty repository
|
||||||
|
git push origin --set-upstream "$TARGET_BRANCH"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user