Skip to content

Commit e8d06b8

Browse files
authored
Update start.sh
1 parent 277d92c commit e8d06b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/sh
2-
echo "Push to branch ${INPUT_BRANCH}";
2+
echo "Push to branch ${INPUT_BRANCH:=master}";
33
[ -z "${INPUT_GITHUB_TOKEN}" ] && {
44
echo 'Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".';
55
exit 1;
66
};
77

88
header=$(echo -n "ad-m:${INPUT_GITHUB_TOKEN}" | base64)
9-
git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:master;
9+
git -c http.extraheader="AUTHORIZATION: basic $header" push origin HEAD:${INPUT_BRANCH};

0 commit comments

Comments
 (0)