Make publication paths portable on CI
Beffroi Reporting CI All checks passed and encrypted report archives were built.
Beffroi/beffroi-reporting/pipeline/head This commit looks good
Details
Beffroi Reporting CI All checks passed and encrypted report archives were built.
Beffroi/beffroi-reporting/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a5b4a8f9cd
commit
69240d276e
2
reporter
2
reporter
|
|
@ -1 +1 @@
|
|||
Subproject commit 714292ad16ffdef7c8edf32fbdb36b509b9ea386
|
||||
Subproject commit 70f763a65a7f747f421030a5bfc56611987b90b1
|
||||
2
reports
2
reports
|
|
@ -1 +1 @@
|
|||
Subproject commit 1d0b1e12401ae944e7341438a5d0509a0aa1697e
|
||||
Subproject commit 21cf355d730e1c56ac39350f9cb839ac6a8fabaa
|
||||
|
|
@ -21,7 +21,7 @@ while (($#)); do
|
|||
done
|
||||
|
||||
[[ ! -L "$output_root" ]] || { echo "$output_root: symlink output root is not supported" >&2; exit 1; }
|
||||
output_root=$(realpath -m "$output_root")
|
||||
output_root=$(python3 -c 'import os, sys; print(os.path.realpath(sys.argv[1]))' "$output_root")
|
||||
root=$(pwd -P)
|
||||
[[ "$output_root" != "$root" && "$root" != "$output_root"/* ]] || { echo "$output_root: output root cannot contain the repository" >&2; exit 1; }
|
||||
[[ "$output_root" != "$root/reports" && "$output_root" != "$root/reports"/* && "$output_root" != "$root/reporter" && "$output_root" != "$root/reporter"/* ]] || { echo "$output_root: output root cannot be inside a source component" >&2; exit 1; }
|
||||
|
|
@ -47,7 +47,7 @@ while IFS= read -r -d '' source; do
|
|||
mkdir -p "$(dirname "$output")"
|
||||
scripts/render-capture.sh "$source" "$output"
|
||||
((count += 1))
|
||||
done < <(find reports/diagnostics -type f -name '*.json' -print0 | sort -z)
|
||||
done < <(find reports/diagnostics -type f -name '*.json' -print0)
|
||||
((count > 0)) || { echo 'No diagnostic captures found' >&2; exit 1; }
|
||||
echo "Rendered $count diagnostic PDFs into $output_root/diagnostics"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@ while IFS= read -r -d '' capture; do
|
|||
mkdir -p "$(dirname "$output")"
|
||||
reports/plugins/diagnostics/render.sh "$capture" --output "$output" --author "$author" --theme "$theme"
|
||||
((count+=1))
|
||||
done < <(find "$capture_dir" -type f -name '*.json' -print0 | sort -z)
|
||||
done < <(find "$capture_dir" -type f -name '*.json' -print0)
|
||||
echo "Created $count diagnostic artifacts and PDFs under $output_root"
|
||||
|
|
|
|||
Loading…
Reference in New Issue