Skip to content

Commit

Permalink
Added back tag check with adjustments for override
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenJDH committed Jan 4, 2025
1 parent 4f38cfd commit 6037987
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if [[ "$INPUT_ENABLE_DRY_RUN" == "true" ]]; then
echo "Preparing for dry-run..."
INPUT_RELEASE_VERSION="refs/tags/v1.0.0"
dry_run_flag="--dry-run"
elif [[ "$INPUT_RELEASE_VERSION" != "refs/tags/"* && "$INPUT_RELEASE_VERSION" == "refs/"* ]]; then
echo "::error::This should only run on push tags or on release if release-version is not used." >&2
exit 1
fi

GITHUB_HOST=${GITHUB_SERVER_URL#https://}
Expand Down

0 comments on commit 6037987

Please # to comment.