Update start.sh

This commit is contained in:
Adam Dobrawy 2019-08-24 13:44:51 +02:00
parent 7f77d44deb
commit fbe6aa5e4b

View File

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