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