File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ main() {
15
15
exit 1
16
16
fi
17
17
18
+ # We need HOMEBREW_GITHUB_API_TOKEN to push up commits
19
+ if [[ $( is_env_var_set " HOMEBREW_GITHUB_API_TOKEN" ) -eq 1 ]]; then
20
+ echo " HOMEBREW_GITHUB_API_TOKEN is not set"
21
+ exit 1
22
+ fi
23
+
18
24
# NOTE: we need to make sure cdrci/homebrew-core
19
25
# is up-to-date
20
26
# otherwise, brew bump-formula-pr will use an
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ SCRIPT="$BATS_TEST_DIRNAME/../../ci/steps/$SCRIPT_NAME"
5
5
6
6
source " $SCRIPT "
7
7
8
- @test " is_env_var_set should return false if env var is not set" {
8
+ @test " is_env_var_set should return 1 if env var is not set" {
9
9
run is_env_var_set " ASDF_TEST_SET"
10
10
[ " $output " = 1 ]
11
11
}
12
12
13
- @test " is_env_var_set should return true if env var is set" {
13
+ @test " is_env_var_set should return 0 if env var is set" {
14
14
ASDF_TEST_SET=" test" run is_env_var_set " ASDF_TEST_SET"
15
15
[ " $output " = 0 ]
16
16
}
You can’t perform that action at this time.
0 commit comments