Skip to content

Commit a728325

Browse files
authored
fix: Input token
1 parent 602df6a commit a728325

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -Eeuo pipefail
33

44
if [ -z "${GITHUB_TOKEN:-}" ]; then
5-
if [ -n "${INPUT_TOKEN:-}" ]; then
5+
if [ -n "$INPUT_TOKEN" ]; then
66
export GITHUB_TOKEN="$INPUT_TOKEN"
77
else
88
echo "The token input is not set!" && exit 1
@@ -21,8 +21,8 @@ if (( rc == 0 )); then
2121
sleep 3
2222
fi
2323

24-
if [ -z "${INPUT_COMMIT}" ]; then
25-
if [ -z "${INPUT_BODY}" ]; then
24+
if [ -z "$INPUT_COMMIT" ]; then
25+
if [ -z "$INPUT_BODY" ]; then
2626
gh release create -t "$INPUT_TITLE" "$INPUT_TAG" --generate-notes
2727
else
2828
gh release create -t "$INPUT_TITLE" -n "$INPUT_BODY" "$INPUT_TAG"

0 commit comments

Comments
 (0)