mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
Update how commit is pushed
This commit is contained in:
parent
b197c5ff8c
commit
5df30c89b8
@ -55,7 +55,12 @@ _local_commit() {
|
||||
}
|
||||
|
||||
_push_to_github() {
|
||||
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
|
||||
if [ -z $INPUT_BRANCH ]
|
||||
then
|
||||
git push origin
|
||||
else
|
||||
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
|
||||
fi
|
||||
}
|
||||
|
||||
_main
|
||||
|
Loading…
Reference in New Issue
Block a user