blob: 5ec381ccdd03b97c8f22dade12c35bcc8e08e842 [file] [log] [blame]
#!/bin/sh
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;