Fix urls for build status reports
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
delliott 2024-08-28 13:34:50 +02:00
parent 0e214f8aad
commit 9065e9bbfd
Signed by: delliott
SSH Key Fingerprint: SHA256:h5IC6Ec/o6ypmpM7ZdRqULGyG8dz4Jr5K192BAWAjoo

View File

@ -78,12 +78,13 @@ fi)
<details>
<summary>Previous builds</summary>
<div class="scrollbox">
<a href="/${PWD##*/}">latest</a><br/>
$(
find "$DATADIR" -name "status_*.html" -type f -printf "%f\n" | sort -r | head -n10 | while read stat; do
t="${stat#status_}"
t="${t%.html}"
printf '<a href="%s">%s</a> - %s<br>' \
"data/$stat" "$(timestamp "$t")" "$(sed -rn 's;^.*<dt>Duration:</dt><dd>(.+)</dd>.*$;\1;p;T;q' "$stat")"
printf '<a href="%s">%s</a> - %s<br/>' \
"/${PWD##*/}/${DATADIR}/$stat" "$(timestamp "$t")" "$(sed -rn 's;^.*<dt>Duration:</dt><dd>(.+)</dd>.*$;\1;p;T;q' "$stat")"
printf $'\n'
done
)