simplify: publish rendered PDFs with move
Reportist CI All report validation and rendering checks passed.
Beffroi/reportist/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-09-16 01:55:25 +02:00
parent eff5e623b7
commit 7a7ba72524
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ bash tools/render-all.sh reports --output-dir output
The renderer validates input before invoking Typst. It stages the report and its
branding asset in an isolated temporary project, then publishes the completed
PDF atomically. Existing output is rejected unless `--force` is explicit.
PDF after a successful render. Existing output is rejected unless `--force` is explicit.
Logo paths resolve relative to the input report. Absolute paths, parent
traversal, and symlinked assets are rejected. Reports without branding use the

View File

@ -55,5 +55,5 @@ if ! "$typst_command" compile --root "$stage" --input "report=report.$format" --
"$stage/report.typ" "$stage/report.pdf"; then
fail "invalid report or Typst rendering failed"
fi
if [[ "$force" == true ]]; then mv -f -- "$stage/report.pdf" "$output"; else ln -- "$stage/report.pdf" "$output"; fi
if [[ "$force" == true ]]; then mv -f -- "$stage/report.pdf" "$output"; else mv -- "$stage/report.pdf" "$output"; fi
echo "Rendered PDF: $output"