File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments