Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

Validate V6 readiness JSON contract instead of stale child executable LASTEXITCODE

davoodmehraban89 committed Oct 17, 2026 at 23:12 UTC d9b8db8eb751553b49e6e0c72f912448bc5daf2a
1 file changed +2 -1
.github/workflows/v6-portable-readiness-once.yml
+2 -1
@@ -92,9 +92,10 @@ jobs:
92 Write-Host "PORTABLE_EVIDENCE_BANK_DISABLED=$([bool]$r.bankDisabled)"
93 }catch{throw 'PORTABLE_EVIDENCE_JSON_UNREADABLE'}
94 }
95 - if($scriptThrew -or $exitCode -ne 0){throw 'PORTABLE_V6_READINESS_FAILED'}
95 + if($scriptThrew){throw 'PORTABLE_V6_SCRIPT_THROWN'}
96 if(!$hasEvidence){throw 'PORTABLE_EVIDENCE_MISSING'}
97 if($r.status -ne 'PASS_READY_ONLY' -or !$r.ready -or !$r.bankDisabled){throw 'PORTABLE_READINESS_CONTRACT_FAILED'}
98 + if($exitCode -ne 0){Write-Host 'NOTE_CHILD_EXIT_NONZERO_BUT_SMOKE_SCRIPT_STRUCTURED_READY_CONTRACT_PASS'}
99 Write-Host 'GATE_PASS_ORIGINAL_V6_PORTABLE_LOCAL_READY_BANK_DISABLED'
100 - name: Publish only scope and privacy controls
101 if: always()