Skip to content

Commit b9a1cd2

Browse files
authored
fix release script bob token check (#2600)
1 parent 5eaba8f commit b9a1cd2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

release.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737

3838
set -e
3939

40-
# fail if this is not set
41-
[${BOB_GITHUB_TOKEN:?}]
42-
4340
# SLACK_CHANNEL code is duplicated in ./release/ci.hcl
4441
SLACK_CHANNEL="C03RXFX5M4L"
4542
# BRANCH allow override of default branch with an optional argument
@@ -65,6 +62,12 @@ prompt() {
6562
printf "[?] %s" "$@ "
6663
}
6764

65+
# fail if this is not set
66+
if [[ -z "$BOB_GITHUB_TOKEN" ]]; then
67+
log_error "BOB_GITHUB_TOKEN is not set"
68+
exit 1
69+
fi
70+
6871
# show the latest commit of BRANCH to user for manual validation
6972
log_info "Fetching default release branch '${BRANCH}'..."
7073
git fetch origin

0 commit comments

Comments
 (0)