(build) Refactor release workflow#3922
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refactors the GitHub Actions workflow used to manage CLI releases by consolidating “create release notes” and “publish release” operations into a single manually-triggered workflow with an explicit task selector.
Changes:
- Renames/repurposes the workflow to “Manage Release” and adds a
taskinput to choose betweencreateandpublish. - Updates the workflow run script to execute different Cake targets based on the selected task.
- Modifies
recipe.cakebuild parameters (notablyrepositoryOwner).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
recipe.cake |
Changes build/release configuration for repository targeting (currently points to a personal owner). |
.github/workflows/release-notes.yml |
Consolidates create/publish release flows into one workflow via a new task input and conditional execution. |
Comments suppressed due to low confidence (2)
.github/workflows/release-notes.yml:61
- The workflow is intended to only work when
createruns from a branch ref andpublishruns from a tag ref, but there is no validation. This can lead to confusing failures or publishing against the wrong ref if someone triggers it from the wrong "Use workflow from" selection.
.github/workflows/release-notes.yml:55 - The PR description says the publish path should invoke the
Publish-ReleaseCake task, but the workflow calls--target=Publish-Release-Notes. If the target name is incorrect, the workflow will fail at runtime; if the target name is correct, the PR description should be updated to match.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This commit does two main items. Firstly, it remains create-release-notes.yml to simply release-notes.yml since this workflow does more than simply creates a release. It also handles the follow up step to publish release including closing the milestone and updating the associated issues with closing messages. It does this via a modification to the existing job to take in the decision about whether this is a create or publish execution. This then either calls the Create-Release-Notes task or the Publish-Release task. This will _only_ work if a branch is selected for the create flow, and a tag for the publish flow.
gep13
force-pushed
the
update-release-action
branch
from
July 20, 2026 06:40
737755d to
825aef1
Compare
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 Of Changes
This is a follow up PR to this one:
#3920
Which adds in the ability to run either the create or publish flows to fully manage releases for CLI.
Motivation and Context
This commit does two main items.
Firstly, it remains create-release-notes.yml to simply release-notes.yml
since this workflow does more than simply creates a release. It also
handles the follow up step to publish release including closing the
milestone and updating the associated issues with closing messages.
It does this via a modification to the existing job to take in the
decision about whether this is a create or publish execution. This then
either calls the Create-Release-Notes task or the Publish-Release task.
This will only work if a branch is selected for the create flow, and a
tag for the publish flow.
Testing
Follow the steps in this PR:
#3920
Once complete, publish the release that was created for 2.8.0.
Run the Manage Release Action one more time, selecting the 2.8.0 tag (and NOT a branch), and verify that the following is completed:
Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
N/A