release-upload-buildinfo: replace version-comparison channel gating with metadata flags#27074
Merged
Merged
Conversation
…l gating Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
TravisEz13
March 20, 2026 14:10
View session
TravisEz13
reviewed
Mar 20, 2026
Member
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 <10873629+TravisEz13@users.noreply.github.com>
TravisEz13
reviewed
Mar 20, 2026
TravisEz13
approved these changes
Mar 20, 2026
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.
daxian-dbw
approved these changes
Mar 20, 2026
jshigetomi
approved these changes
Mar 20, 2026
adityapatwardhan
approved these changes
Mar 20, 2026
adityapatwardhan
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Apr 1, 2026
…ith metadata flags (PowerShell#27074)
9 tasks
adityapatwardhan
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Apr 2, 2026
…ith metadata flags (PowerShell#27074)
9 tasks
adityapatwardhan
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Apr 2, 2026
…ith metadata flags (PowerShell#27074)
9 tasks
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.