Update start.sh
This commit is contained in:
parent
7f77d44deb
commit
fbe6aa5e4b
5
start.sh
5
start.sh
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eux
|
|
||||||
echo "Push to branch ${INPUT_BRANCH}";
|
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)
|
header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64)
|
||||||
git -c http.extraheader="AUTHORIZATION: basic $header" push origin refs/remotes/origin/master:master;
|
git -c http.extraheader="AUTHORIZATION: basic $header" push origin refs/remotes/origin/master:master;
|
Loading…
x
Reference in New Issue
Block a user