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