Skip to content

Commit

Permalink
Merge pull request #120 from tj-actions/feat/exit-with-1-when-missing…
Browse files Browse the repository at this point in the history
…-the-GITHUB_REF-input

feat: exit with 1 when missing the GITHUB_REF input
  • Loading branch information
repo-ranger[bot] authored Aug 26, 2023
2 parents 97c04f3 + ff009ff commit 1a9264b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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://}
Expand Down

0 comments on commit 1a9264b

Please sign in to comment.