Skip to content

Commit

Permalink
abort when trying to rewrite the last cabal tag or release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jan 9, 2025
1 parent 48076b7 commit 0271372
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/buildkite/release/release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ OLD_GIT_TAG=$( git tag -l "v2*-*-*" | sort | tail -n1)

LAST_RELEASE_DATE=$(tag_date "$OLD_GIT_TAG")

if [ "$OLD_GIT_TAG" == "$NEW_GIT_TAG" ]; then
echo "Refusing to rewrite last release tag"
exit 1
fi

OLD_CABAL_VERSION=$(tag_cabal_ver "$OLD_GIT_TAG")

if [ "$OLD_CABAL_VERSION" == "$NEW_CABAL_VERSION" ]; then
echo "Refusing to rewrite last release cabal version"
exit 1
fi

CARDANO_NODE_TAG=$(cardano-node version | head -n1 | awk '{print $2}')

if [ "$BUILDKITE_BRANCH" == "master" ]; then
Expand Down

0 comments on commit 0271372

Please sign in to comment.