From 5df30c89b8e74245c1235561526f707b4306c930 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 5 Feb 2020 21:22:54 +0100 Subject: [PATCH] Update how commit is pushed --- entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index c592998..2fa4a55 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -55,7 +55,12 @@ _local_commit() { } _push_to_github() { - git push --set-upstream origin "HEAD:$INPUT_BRANCH" + if [ -z $INPUT_BRANCH ] + then + git push origin + else + git push --set-upstream origin "HEAD:$INPUT_BRANCH" + fi } _main