From 0884c39e7e6e1b783776d298bf4759d9ad753695 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 5 Feb 2020 21:28:18 +0100 Subject: [PATCH] WIP --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }