Skip to content

Commit 602df6a

Browse files
authored
fix: Check for empty token
1 parent 06bb9e0 commit 602df6a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
set -Eeuo pipefail
33

44
if [ -z "${GITHUB_TOKEN:-}" ]; then
5-
export GITHUB_TOKEN="$INPUT_TOKEN"
5+
if [ -n "${INPUT_TOKEN:-}" ]; then
6+
export GITHUB_TOKEN="$INPUT_TOKEN"
7+
else
8+
echo "The token input is not set!" && exit 1
9+
fi
610
fi
711

812
[ -z "$INPUT_TITLE" ] && INPUT_TITLE="Name"

0 commit comments

Comments
 (0)