From e8d06b80faa350087ed0cbcc9f9cfee9644a3557 Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Thu, 12 Sep 2019 03:06:46 +0200 Subject: [PATCH] Update start.sh --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 779eaf1..c3c2571 100755 --- a/start.sh +++ b/start.sh @@ -1,9 +1,9 @@ #!/bin/sh -echo "Push to branch ${INPUT_BRANCH}"; +echo "Push to branch ${INPUT_BRANCH:=master}"; [ -z "${INPUT_GITHUB_TOKEN}" ] && { echo 'Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".'; exit 1; }; header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64) -git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:master; \ No newline at end of file +git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:${INPUT_BRANCH};