Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m authored Sep 12, 2019
1 parent 277d92c commit e8d06b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -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;
git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:${INPUT_BRANCH};

0 comments on commit e8d06b8

Please sign in to comment.