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 277d92c commit e8d06b8Copy full SHA for e8d06b8
start.sh
@@ -1,9 +1,9 @@
1
#!/bin/sh
2
-echo "Push to branch ${INPUT_BRANCH}";
+echo "Push to branch ${INPUT_BRANCH:=master}";
3
[ -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 HEAD:master;
+git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:${INPUT_BRANCH};
0 commit comments