From df40e662a15978b15d042f05085f60e48f87533e Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 26 Aug 2023 14:21:00 -0600 Subject: [PATCH] feat: exit with 1 when missing the GITHUB_REF input --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9bf3c3a..de1bcc9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,8 +3,8 @@ set -euo pipefail if [[ $GITHUB_REF != "refs/tags/"* ]]; then - echo "::warning::Skipping: This should only run on tags push or on release."; - exit 0; + echo "::error::This should only run on tags push or on release."; + exit 1; fi GITHUB_HOST=${GITHUB_SERVER_URL#https://}