Skip to content

Commit 90ef1ca

Browse files
authored
Update push-to-repository.sh
1 parent 7346fe2 commit 90ef1ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/push-to-repository.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
set -e
44

5-
if [[ -z "$BOT_TOKEN_TEST" ]]; then
5+
if [[ -z "$BOT_TOKEN" ]]; then
66
echo "Set the BOT_TOKEN env variable."
77
exit 1
88
fi
99

1010
COMMAND="${1/ /-}" #replace spaces with dashes
1111
TAG=$2
12-
REPO="https://liquibot:$BOT_TOKEN_TEST@github.com/liquibase-github-actions/$COMMAND.git"
12+
REPO="https://liquibot:$BOT_TOKEN@github.com/liquibase-github-actions/$COMMAND.git"
1313
COMMAND_DIR="$PWD/action/${COMMAND//-/_}" #replace dashes with underscore
1414
TEMP_DIR="$PWD/action/temp"
1515

@@ -22,7 +22,7 @@ create_issue() {
2222
curl \
2323
-X POST \
2424
-H "Accept: application/vnd.github+json" \
25-
-H "Authorization: Bearer $BOT_TOKEN_TEST" \
25+
-H "Authorization: Bearer $BOT_TOKEN" \
2626
https://api.github.com/repos/$REPO/issues \
2727
-d "{\"title\":\"$TITLE\",\"body\":\"$BODY\",\"labels\":[\"enhancement\"]}"
2828
}
@@ -34,7 +34,7 @@ create_release() {
3434
curl \
3535
-X POST \
3636
-H "Accept: application/vnd.github+json" \
37-
-H "Authorization: Bearer $BOT_TOKEN_TEST" \
37+
-H "Authorization: Bearer $BOT_TOKEN" \
3838
https://api.github.com/repos/liquibase-github-actions/$REPO/releases \
3939
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":true}"
4040
}

0 commit comments

Comments
 (0)