Repository navigation
fix(ci): fail validate when GitHub Release already exists - #445
Merged
Merged
Conversation
There was a problem hiding this comment.
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 viewto detect an existing GitHub Release forPUBLISH_VERSION. - Update root
CHANGELOG.mdwith a bullet for #443 under0.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an early validation step in the release workflow so a final release fails in Validate Release if a GitHub Release for
PUBLISH_VERSIONalready 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 featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release.ymlgh release viewandgithub.token.CHANGELOG.md## [0.3.1] - TBD.assets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
This PR targets
release/0.3.1; the entry is under## [0.3.1] - TBD(not## Unreleased).Fixed
.github/workflows/release.ymlnow checksgh release viewforPUBLISH_VERSIONso an existing release is rejected before build/sign/publishTesting
just test)Manual Testing Details
N/A — workflow-only change; validation is exercised on the next release run.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdunder## [0.3.1] - TBD(release branch; entry pasted above)Additional Notes
N/A
Refs: #443