Skip to content

Commit fbe6aa5

Browse files
committed
Update start.sh
1 parent 7f77d44 commit fbe6aa5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

start.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/sh
2-
set -eux
32
echo "Push to branch ${INPUT_BRANCH}";
3+
[ -z "${INPUT_GITHUB_TOKEN}" ] && {
4+
echo 'Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".';
5+
exit 1;
6+
};
47

58
header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64)
69
git -c http.extraheader="AUTHORIZATION: basic $header" push origin refs/remotes/origin/master:master;

0 commit comments

Comments
 (0)