We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f77d44 commit fbe6aa5Copy full SHA for fbe6aa5
start.sh
@@ -1,6 +1,9 @@
1
#!/bin/sh
2
-set -eux
3
echo "Push to branch ${INPUT_BRANCH}";
+[ -z "${INPUT_GITHUB_TOKEN}" ] && {
4
+ echo 'Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".';
5
+ exit 1;
6
+};
7
8
header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64)
9
git -c http.extraheader="AUTHORIZATION: basic $header" push origin refs/remotes/origin/master:master;
0 commit comments