diff --git a/entrypoint.sh b/entrypoint.sh index e5f0533..00674fb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 }