Skip to content

Commit 6dee43c

Browse files
committed
improved: do not require gh token for help and version options
1 parent 17050e2 commit 6dee43c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
set -e
44

5-
if [ -z "$GITHUB_TOKEN" ]; then
5+
# 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
68
echo "GITHUB_TOKEN is not set. Exiting."
79
exit 1
810
fi

0 commit comments

Comments
 (0)