From 715a952148ae6e83fda0886f5ceec8dc329972ae Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 21 Jul 2024 13:24:44 +0300 Subject: [PATCH] build: Remove auth if token not provided --- bin/release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/release.sh b/bin/release.sh index cb1b36021..0d4ef905d 100755 --- a/bin/release.sh +++ b/bin/release.sh @@ -65,7 +65,9 @@ if [[ $TAG == *"beta"* ]]; then EXTRA=--prerelease fi -echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token +if [ ! -z "$GITHUB_CLI_AUTH_TOKEN" ]; then + echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token +fi gh release create "$TAG" \ --title "$TAG release" \