Skip to content

Skip Deliver and Deploy when no app artifacts exist#2129

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/fix-deliver-to-blob-storage
Draft

Skip Deliver and Deploy when no app artifacts exist#2129
Copilot wants to merge 5 commits intomainfrom
copilot/fix-deliver-to-blob-storage

Conversation

Copy link
Contributor

Copilot AI commented Feb 16, 2026

❔What, Why & How

Initial commits fail Deliver/Deploy actions when org-level StorageContext or deployment settings are configured, throwing "Error - unable to locate apps" before any apps are built.

Changes:

  • Deliver action: Check for app artifacts ($project-$refname-Apps-*.*.*.* pattern) after listing artifacts. Skip project iteration if none found.

    $appArtifactsExist = @(Get-ChildItem -Path (Join-Path $artifactsFolder "$project-$refname-Apps-*.*.*.*") -Directory -ErrorAction SilentlyContinue).Count -gt 0
    if (-not $appArtifactsExist) {
        Write-Host "No app artifacts found for project '$project'. Skipping delivery."
        continue
    }
  • Deploy action: Validate $apps array after GetAppsAndDependenciesFromArtifacts call. Exit cleanly if empty.

    if ($apps.Count -eq 0) {
        Write-Host "No apps found to deploy to environment '$environmentName'. Skipping deployment."
        exit 0
    }

✅ Checklist

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

This section details on the original issue you should resolve

<issue_title>[Bug]: Deliver to blob storage fails on Initial commit</issue_title>
<issue_description>### AL-Go version

8.2

Describe the issue

if OrgSettings + OrgSecret are being used to Deliver to blob storage the Initial commit will fail with

Image

Error: Unexpected error when running action. Error Message: Error - unable to locate apps, StackTrace: at , D:\a_actions\microsoft\AL-Go-Actions\v8.2\Deliver\Deliver.ps1: line 308 <- at , D:\a_actions\microsoft\AL-Go-Actions\v8.2\Deliver\Deliver.ps1: line 302 <- at , D:\a_temp\65e3a2a2-9717-48fe-9093-d7a6d02cf2e1.ps1: line 3 <- at , D:\a_actions\microsoft\AL-Go-Actions\v8.2\Invoke-AlGoAction.ps1: line 21 <- at , D:\a_temp\65e3a2a2-9717-48fe-9093-d7a6d02cf2e1.ps1: line 2 <- at , : line 1

Expected behavior

Skip delivery section if no AL project are present in the repository.

Steps to reproduce

  1. add a Org secret for STORAGECONTEXT.

  2. add
    "DeliverToStorage": {
    "CreateContainerIfNotExist": true
    },
    to Org variable ALGOORGSETTINGS.

  3. create a new repository from AL-Go PTE template

  4. let the Initial commit run to the delivery section.

Additional context (logs, screenshots, etc.)

this seems to be a similarly issue as #2083 only for delivery section instead of the sign section sign</issue_description>

<agent_instructions>Please fix the issue to only initiate the delivery if there are apps in the repository.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: mazhelez <43066499+mazhelez@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix deliver to blob storage failure on initial commit Fix: Skip delivery when no app artifacts exist Feb 16, 2026
Copilot AI requested a review from mazhelez February 16, 2026 09:34
Copilot AI and others added 2 commits February 16, 2026 13:32
Co-authored-by: mazhelez <43066499+mazhelez@users.noreply.github.com>
Co-authored-by: mazhelez <43066499+mazhelez@users.noreply.github.com>
Copilot AI changed the title Fix: Skip delivery when no app artifacts exist Skip Deliver and Deploy when no app artifacts exist Feb 16, 2026
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.

[Bug]: Deliver to blob storage fails on Initial commit

2 participants