فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

ci(a08): verify reusable native artifact availability and archive digest

Davood Mehraban committed Nov 23, 2026 at 22:13 UTC 3c8124f993085baff18ab28ebdefe57debf5394f
1 file changed +9 -1
.github/workflows/a08-targeted-native-reuse.yml
+9 -1
@@ -52,7 +52,15 @@ jobs:
52 $run.path -notmatch '(^|/)windows-vm-native-lab[.]yml(@|$)') {
53 throw 'Source must be a successful first-party native lab run on exactly this commit'
54 }
55 - Write-Host ("Verified candidate run "+$run.html_url+" SHA "+$run.head_sha)
55 + $artifacts=gh api "repos/$env:GITHUB_REPOSITORY/actions/runs/$env:SOURCE_RUN/artifacts?per_page=100" | ConvertFrom-Json
56 + $candidate=@($artifacts.artifacts | Where-Object { $_.name -eq 'phase-a-native-candidate-nsis' })
57 + if ($candidate.Count -ne 1 -or $candidate[0].expired -or
58 + $candidate[0].size_in_bytes -lt 500000 -or
59 + $candidate[0].digest -notmatch '^sha256:[a-fA-F0-9]{64}$') {
60 + throw 'Missing, expired, duplicated or unverifiable native candidate artifact'
61 + }
62 + Write-Host ("Verified candidate run "+$run.html_url+" SHA "+$run.head_sha+
63 + " artifact "+$candidate[0].id+" archive digest "+$candidate[0].digest)
64 - name: Reuse already-built candidate NSIS
65 uses: actions/download-artifact@v4
66 with: