From 4087555a74384f942dc18c3f624f3e128eccc0e3 Mon Sep 17 00:00:00 2001 From: "Shaik Naseeruddin (BEYONDSOFT CONSULTING INC)" Date: Wed, 18 Nov 2026 14:03:05 +0530 Subject: [PATCH 1/2] fix: compile Bicep sources in generated CI templates --- alz/azuredevops/pipelines/bicep/templates/ci-template.yaml | 2 +- alz/github/actions/bicep/templates/workflows/ci-template.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alz/azuredevops/pipelines/bicep/templates/ci-template.yaml b/alz/azuredevops/pipelines/bicep/templates/ci-template.yaml index 58c5cf1f..fb1acca5 100644 --- a/alz/azuredevops/pipelines/bicep/templates/ci-template.yaml +++ b/alz/azuredevops/pipelines/bicep/templates/ci-template.yaml @@ -27,7 +27,7 @@ stages: pwsh: true script: | $output = @() - Get-ChildItem -Recurse -Filter '*.bicep' -Exclude '*.bicep' | Where-Object { $_.FullName -notlike "*\.bicep\*" } | ForEach-Object { + Get-ChildItem -Recurse -File -Filter '*.bicep' | Where-Object { $_.FullName -notlike "*\.bicep\*" } | ForEach-Object { Write-Information "==> Attempting Bicep Build For File: $_" -InformationAction Continue $bicepOutput = bicep build $_.FullName 2>&1 if ($LastExitCode -ne 0) diff --git a/alz/github/actions/bicep/templates/workflows/ci-template.yaml b/alz/github/actions/bicep/templates/workflows/ci-template.yaml index 0820a692..5c27b0b2 100644 --- a/alz/github/actions/bicep/templates/workflows/ci-template.yaml +++ b/alz/github/actions/bicep/templates/workflows/ci-template.yaml @@ -22,7 +22,7 @@ jobs: shell: pwsh run: | $output = @() - Get-ChildItem -Recurse -Filter '*.bicep' -Exclude '*.bicep' | Where-Object { $_.FullName -notlike "*\.bicep\*" } | ForEach-Object { + Get-ChildItem -Recurse -File -Filter '*.bicep' | Where-Object { $_.FullName -notlike "*\.bicep\*" } | ForEach-Object { Write-Information "==> Attempting Bicep Build For File: $_" -InformationAction Continue $bicepOutput = bicep build $_.FullName 2>&1 if ($LastExitCode -ne 0) From c74579efd8d6b5e8e6d8ec628b833a7ec6c523b4 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Thu, 19 Nov 2026 16:28:22 +0800 Subject: [PATCH 2/2] fix --- alz/github/actions/bicep/templates/workflows/ci-template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alz/github/actions/bicep/templates/workflows/ci-template.yaml b/alz/github/actions/bicep/templates/workflows/ci-template.yaml index 5c27b0b2..0097e91c 100644 --- a/alz/github/actions/bicep/templates/workflows/ci-template.yaml +++ b/alz/github/actions/bicep/templates/workflows/ci-template.yaml @@ -22,7 +22,7 @@ jobs: shell: pwsh run: | $output = @() - Get-ChildItem -Recurse -File -Filter '*.bicep' | Where-Object { $_.FullName -notlike "*\.bicep\*" } | ForEach-Object { + Get-ChildItem -Recurse -File -Filter '*.bicep' | Where-Object { $_.FullName -notlike "*\.bicep\*" } | ForEach-Object { Write-Information "==> Attempting Bicep Build For File: $_" -InformationAction Continue $bicepOutput = bicep build $_.FullName 2>&1 if ($LastExitCode -ne 0)