Skip to content

Commit 1a9264b

Browse files
Merge pull request #120 from tj-actions/feat/exit-with-1-when-missing-the-GITHUB_REF-input
feat: exit with 1 when missing the GITHUB_REF input
2 parents 97c04f3 + ff009ff commit 1a9264b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -euo pipefail
44

55
if [[ $GITHUB_REF != "refs/tags/"* ]]; then
6-
echo "::warning::Skipping: This should only run on tags push or on release.";
7-
exit 0;
6+
echo "::error::This should only run on tags push or on release.";
7+
exit 1;
88
fi
99

1010
GITHUB_HOST=${GITHUB_SERVER_URL#https://}

0 commit comments

Comments
 (0)