Repository navigation
release-upload-buildinfo: replace version-comparison channel gating with metadata flags - #27074
Merged
Dongbo Wang (daxian-dbw) merged 3 commits intoMar 20, 2026
Merged
Conversation
…l gating Co-authored-by: TravisEz13 <[email protected]>
There was a problem hiding this comment.
I think it would make it more readable to add a $isStable and $isPreview right after we get the file name. Copilot
Contributor
Author
There was a problem hiding this comment.
Done in 99868e8. Added $isPreview and $isStable booleans immediately after $fileName is set, and replaced all $fileName -eq "preview.json" / $fileName -eq "stable.json" comparisons with them throughout the script.
Co-authored-by: TravisEz13 <[email protected]>
Travis Plunk (TravisEz13)
approved these changes
Mar 20, 2026
Travis Plunk (TravisEz13)
marked this pull request as ready for review
March 20, 2026 14:20
Travis Plunk (TravisEz13)
requested review from
a team and
Justin Chung (jshigetomi)
as code owners
March 20, 2026 14:20
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the release build-info upload pipeline template to base channel upload decisions on explicit tools/metadata.json publish flags (instead of comparing version tags), and to always publish a version-specific buildinfo file for non-preview releases.
Changes:
- Replace stable channel gating based on version comparison with
StableRelease.PublishToChannels. - Add creation/upload of a version-specific
{Major}-{Minor}.jsonfile for stable (non-preview) builds. - Introduce
VersionSpecificBuildInfoFileandUploadVersionSpecificvariables and incorporate them into the Azure upload step + task condition.
Dongbo Wang (daxian-dbw)
approved these changes
Mar 20, 2026
Justin Chung (jshigetomi)
approved these changes
Mar 20, 2026
Aditya Patwardhan (adityapatwardhan)
approved these changes
Mar 20, 2026
Dongbo Wang (daxian-dbw)
enabled auto-merge (squash)
March 20, 2026 16:54
Travis Plunk (TravisEz13)
deleted the
copilot/fix-release-upload-buildinfo
branch
March 26, 2026 22:19
Aditya Patwardhan (adityapatwardhan)
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Apr 1, 2026
…ith metadata flags (PowerShell#27074)
3 of 9 tasks
Aditya Patwardhan (adityapatwardhan)
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Apr 2, 2026
…ith metadata flags (PowerShell#27074)
3 of 9 tasks
Aditya Patwardhan (adityapatwardhan)
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Apr 2, 2026
…ith metadata flags (PowerShell#27074)
3 of 9 tasks
Justin Grote (JustinGrote)
pushed a commit
to JustinGrote/PowerShell
that referenced
this pull request
Jun 2, 2026
…ith metadata flags (PowerShell#27074)
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.
Fix #27075
Fix #26713
$currentReleaseTagassignment (before$buildInfois parsed)$stableReleaseTag/ version-comparison variables and logicstable.jsonupload viaStableRelease.PublishToChannelsmetadata flag{Major}-{Minor}.jsonfor non-preview buildsVersionSpecificBuildInfoFileandUploadVersionSpecificbuild variablesUploadVersionSpecific$isPreviewand$isStableboolean variables right after$fileNameis set, and use them in place of string comparisons throughout the script📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.