Skip to content

fix(ci): fail validate when GitHub Release already exists - #445

Merged
c-vigo merged 2 commits into
release/0.3.1from
bugfix/443-fix-031-publish-failure
Mar 25, 2026
Merged

c-vigo merged 2 commits into
release/0.3.1from
bugfix/443-fix-031-publish-failure

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Description

Adds an early validation step in the release workflow so a final release fails in Validate Release if a GitHub Release for PUBLISH_VERSION already exists. That avoids spending build/sign/publish time when the publish step would hit the same guard anyway (see investigation on #443).

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/workflows/release.yml
    • New step Verify GitHub Release does not exist after Verify tag does not exist, using gh release view and github.token.
  • CHANGELOG.md
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Same changelog bullet kept in sync with root manifest.

Changelog Entry

This PR targets release/0.3.1; the entry is under ## [0.3.1] - TBD (not ## Unreleased).

Fixed

  • Release validate fails early when GitHub Release already exists (#443)
    • Validate job in .github/workflows/release.yml now checks gh release view for PUBLISH_VERSION so an existing release is rejected before build/sign/publish

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — workflow-only change; validation is exercised on the next release run.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md under ## [0.3.1] - TBD (release branch; entry pasted above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #443

@c-vigo c-vigo self-assigned this Mar 25, 2026
@c-vigo
c-vigo requested a review from Copilot March 25, 2026 18:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an early guard to the release workflow to stop a release run during validation if a GitHub Release already exists for the computed PUBLISH_VERSION, preventing wasted build/sign/publish time. Updates changelog entries to document the fix for #443.

Changes:

  • Add a validate-step check using gh release view to detect an existing GitHub Release for PUBLISH_VERSION.
  • Update root CHANGELOG.md with a bullet for #443 under 0.3.1 - TBD.
  • Sync the same changelog bullet into assets/workspace/.devcontainer/CHANGELOG.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release.yml Adds early validation step to fail if a GitHub Release for PUBLISH_VERSION already exists.
CHANGELOG.md Adds release-note entry describing the early-fail validation behavior (#443).
assets/workspace/.devcontainer/CHANGELOG.md Keeps workspace template changelog in sync with the root changelog entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo enabled auto-merge March 25, 2026 18:59
@c-vigo
c-vigo merged commit 27ff18e into release/0.3.1 Mar 25, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/443-fix-031-publish-failure branch March 25, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants