Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
inputs:
release_tag:
description: Existing Git tag to publish
description: Existing Git tag to publish; select the same tag as the workflow ref
required: true
type: string
prerelease:
Expand Down Expand Up @@ -73,6 +73,11 @@ jobs:
CODEGEN_VERSION=$(node -p "require('./packages/cli/package.json').version")
TAG_VERSION="${RELEASE_TAG#v}"

if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ] && [ "$GITHUB_REF" != "refs/tags/$RELEASE_TAG" ]; then
echo "Manual release retries must run from tag $RELEASE_TAG; current ref is $GITHUB_REF"
exit 1
fi

if [ "$STACK_VERSION" != "$TAG_VERSION" ]; then
echo "Tag version ($TAG_VERSION) does not match @btst/stack version ($STACK_VERSION)"
exit 1
Expand Down
Loading