We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17050e2 commit 6dee43cCopy full SHA for 6dee43c
1 file changed
entrypoint.sh
@@ -2,7 +2,9 @@
2
3
set -e
4
5
-if [ -z "$GITHUB_TOKEN" ]; then
+# if the first argument is not an option, a command has been issued,
6
+# and we need to check if the GITHUB_TOKEN is set.
7
+if [[ "$1" != -* ]] && [[ -z "$GITHUB_TOKEN" ]]; then
8
echo "GITHUB_TOKEN is not set. Exiting."
9
exit 1
10
fi
0 commit comments