1
0
mirror of https://github.com/stefanzweifel/git-auto-commit-action.git synced 2026-02-02 19:07:15 +08:00
This commit is contained in:
Stefan Zweifel
2020-02-05 21:28:18 +01:00
parent 5ab45a4eef
commit 0884c39e7e

View File

@@ -55,11 +55,11 @@ _local_commit() {
}
_push_to_github() {
if [ -z $INPUT_BRANCH ]
if [ -n "$INPUT_BRANCH" ]
then
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
else
git push origin
else
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
fi
}