This commit is contained in:
Stefan Zweifel
2020-02-05 21:39:14 +01:00
parent f0354eba45
commit 42e5be9ebb
2 changed files with 7 additions and 9 deletions

View File

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