Skip to content

Commit 47c625c

Browse files
committed
Update kv-replacement-test_cipp2zyk4.yml
1 parent 1f8ac87 commit 47c625c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/kv-replacement-test_cipp2zyk4.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,37 @@ jobs:
2020
- name: 'Checkout GitHub Action'
2121
uses: actions/checkout@v4
2222

23+
- name: Debug package contents before deployment
24+
shell: pwsh
25+
run: |
26+
Write-Host "=== Checking deployment package structure ==="
27+
28+
# Check for required Function App files
29+
$requiredFiles = @('host.json', 'profile.ps1', 'requirements.psd1')
30+
foreach ($file in $requiredFiles) {
31+
if (Test-Path $file) {
32+
Write-Host "✓ Found: $file"
33+
Get-Content $file | Select-Object -First 10
34+
} else {
35+
Write-Host "✗ MISSING: $file" -ForegroundColor Red
36+
}
37+
}
38+
39+
Write-Host "`n=== Directory structure ==="
40+
Get-ChildItem -Recurse -Directory | Select-Object FullName
41+
42+
Write-Host "`n=== Module structure ==="
43+
Get-ChildItem "Modules" -Recurse -File | Select-Object FullName
44+
45+
Write-Host "`n=== Package size ==="
46+
$size = (Get-ChildItem -Recurse -File | Measure-Object -Property Length -Sum).Sum / 1MB
47+
Write-Host "Total: $([math]::Round($size, 2)) MB"
48+
49+
# Check for .git folder (shouldn't be there)
50+
if (Test-Path ".git") {
51+
Write-Host "⚠ WARNING: .git folder exists and will bloat package!" -ForegroundColor Yellow
52+
}
53+
2354
- name: 'Run Azure Functions Action'
2455
uses: Azure/functions-action@v1
2556
id: fa

0 commit comments

Comments
 (0)