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};