Skip to content

Commit adb1a4b

Browse files
chore(internal): refactor release doctor script (#269)
1 parent 43e8aca commit adb1a4b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

bin/check-release-environment

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
#!/usr/bin/env bash
22

3-
warnings=()
43
errors=()
54

65
if [ -z "${PYPI_TOKEN}" ]; then
7-
warnings+=("The OPENLAYER_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
8-
fi
9-
10-
lenWarnings=${#warnings[@]}
11-
12-
if [[ lenWarnings -gt 0 ]]; then
13-
echo -e "Found the following warnings in the release environment:\n"
14-
15-
for warning in "${warnings[@]}"; do
16-
echo -e "- $warning\n"
17-
done
6+
errors+=("The OPENLAYER_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
187
fi
198

209
lenErrors=${#errors[@]}

0 commit comments

Comments
 (0)