Skip Store Publish when No Channel Seleceted#27334
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Store package creation and Store publish pipeline templates to behave gracefully when no release channel (LTS/Stable/Preview) is selected, avoiding hard failures and skipping Store-related work.
Changes:
- Adjusted channel selection handling to warn and early-exit instead of erroring when all channel flags are false.
- Introduced/used a
SkipStorePublishvariable to skip downstream StoreBroker artifact upload when Store package creation is skipped. - Added a condition to the “Upload StoreBroker Package” step to avoid failing when expected outputs aren’t present.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.pipelines/templates/release-MSIX-Publish.yml |
Changes channel validation to warn/return when no channel is selected. |
.pipelines/templates/package-store-package.yml |
Skips Store package creation when no channel is selected, sets SkipStorePublish, and conditions the StoreBroker upload step. |
9 tasks
9 tasks
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.
PR Summary
This pull request updates the release pipeline scripts to improve handling when no release channel (LTS, Stable, or Preview) is selected. Instead of failing the pipeline, the scripts now skip the Store package creation and publish steps gracefully, and set variables to ensure downstream tasks are also skipped.
Pipeline robustness and conditional execution:
.pipelines/templates/package-store-package.ymland.pipelines/templates/release-MSIX-Publish.ymlto skip Store package creation/publish with a warning when no valid channel is detected, rather than causing the pipeline to fail. [1] [2]SkipStorePublishvariable and related channel flags to ensure any downstream tasks conditioned on these are properly skipped.SkipStorePublishis not set totrue.PR Context
This is to prevent pipeline failure when a channel like preview, LTS, or stable isn't selected, like for v7.5.X
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header