Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Aug 24, 2019
1 parent 7f77d44 commit fbe6aa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/sh
set -eux
echo "Push to branch ${INPUT_BRANCH}";
[ -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 refs/remotes/origin/master:master;

0 comments on commit fbe6aa5

Please sign in to comment.