Repository navigation
Publish to AppSource failback to current version. - #2384
Open
spetersenms wants to merge 3 commits into
Open
spetersenms wants to merge 3 commits into
spetersenms wants to merge 3 commits into
Conversation
…pSourcePublishFailback
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The user-facing fallback must also be documented in the relevant AppSource scenario.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
What changed in this PR
Adds Publish To AppSource fallback to the latest successful CI/CD artifacts when current is selected and no releases exist.
Changes:
- Extracts delivery artifact retrieval into a reusable function.
- Adds the
currentfallback and unit tests. - Updates release notes.
| File | Description |
|---|---|
Actions/Deliver/Deliver.ps1 |
Uses the extracted artifact retrieval function. |
Actions/Deliver/Deliver.psm1 |
Implements artifact selection and fallback logic. |
Tests/Deliver.Module.Test.ps1 |
Tests release retrieval, fallback, and errors. |
RELEASENOTES.md |
Announces the new fallback behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+150
to
+154
| elseif ($Artifacts -eq "current") { | ||
| # No releases exist in the repository - fall back to the artifacts from the latest build | ||
| Write-Host "::Warning::Current release was specified, but no releases were found. Searching for latest build artifacts instead." | ||
| $searchArtifactsVersion = "latest" | ||
| $searchArtifacts = $true |
Maria Zhelezova (mazhelez)
approved these changes
Sep 30, 2026
This branch has not been deployed
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.

❔What, Why & How
Enabling the PublishToAppSource workflow to behave similar to PublishToEnvironment, such that when current is used and no release is found, it failbacks to latest CI/CD artifact.
Related to issue: #2281
✅ Checklist