mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 16:16:09 -07:00
Fix pushing the generated files into a branch that does not exist
allow to push into remote, even if brach does not exist
This commit is contained in:
commit
ea29b5b83f
|
@ -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 "$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