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
6 changes: 4 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ jobs:
gh api "repos/${{ github.repository }}/releases/$DRAFT_ID" --jq .body > /tmp/body.md
sed '/<!-- version-banner -->/,/<!-- \/version-banner -->/d' /tmp/body.md > /tmp/clean.md
if git ls-remote --exit-code origin "refs/tags/v$VERSION" >/dev/null 2>&1; then
IFS=. read -r MAJ MIN PAT <<< "$VERSION"
NEXT="$MAJ.$MIN.$(( ${PAT%%[!0-9]*} + 1 ))"
{
echo "<!-- version-banner -->"
echo "> [!WARNING]"
echo "> The manifests still declare \`$VERSION\`, which is already released."
echo "> Run \`deno task bump <version>\` and merge the bump before publishing"
echo "> this draft (release spec §2)."
echo "> Run \`deno task bump $NEXT\` (or the next minor/major) and merge the"
echo "> bump before publishing this draft (release spec §2)."
echo "<!-- /version-banner -->"
echo
cat /tmp/clean.md
Expand Down
Loading