mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-08 14:39:09 +02:00
[infrastructure] Find per-arch preflight results in the Red Hat certify check (#8111)
For a manifest list, preflight writes results.json only under artifacts/<arch>/. The literal artifacts/results.json path is not a glob, so nullglob kept it in the list and jq failed on the missing file even though every check passed. A single globstar pattern matches both layouts.
This commit is contained in:
@@ -154,8 +154,8 @@ jobs:
|
||||
- name: Fail if any check did not pass
|
||||
run: |
|
||||
set -euo pipefail
|
||||
shopt -s nullglob
|
||||
results=(artifacts/results.json artifacts/*/results.json)
|
||||
shopt -s nullglob globstar
|
||||
results=(artifacts/**/results.json)
|
||||
if [[ ${#results[@]} -eq 0 ]]; then
|
||||
echo "::error::preflight produced no results.json"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user