Skip Store Publish when No Channel Seleceted by jshigetomi · Pull Request #27334 · PowerShell/PowerShell
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:
- Updated the channel selection logic in
.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] - Set the
SkipStorePublishvariable and related channel flags to ensure any downstream tasks conditioned on these are properly skipped. - Added a condition to the 'Upload StoreBroker Package' step so it only runs if
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
- PR has a meaningful title
- Use the present tense and imperative mood when describing your changes
- Summarized changes
- Make sure all
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header - This PR is ready to merge. If this PR is a work in progress, please open this as a Draft Pull Request and mark it as Ready to Review when it is ready to merge.
- Breaking changes
- None
- OR
- Experimental feature(s) needed
- Experimental feature name(s):
- User-facing changes
- Not Applicable
- OR
- Documentation needed
- Issue filed:
- Testing - New and feature
- N/A or can only be tested interactively
- OR
- Make sure you've added a new test if existing tests do not effectively test the code changed