Skip to content

Publish to AppSource failback to current version. - #2384

Open
spetersenms wants to merge 3 commits into
microsoft:mainfrom
spetersenms:spetersen/AppSourcePublishFailback
Open

spetersenms wants to merge 3 commits into
microsoft:mainfrom
spetersenms:spetersen/AppSourcePublishFailback

Conversation

@spetersenms

@spetersenms spetersenms commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

❔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

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

Copilot AI balanced review requested due to automatic review settings September 25, 2026 14:54
@spetersenms
spetersenms requested a review from a team as a code owner September 25, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Low severity

Open (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 current fallback 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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants