aboutsummaryrefslogtreecommitdiff
path: root/aux/ci/report.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-25 16:00:57 -0300
committerEuAndreh <eu@euandre.org>2021-07-25 16:00:57 -0300
commit301a644485dac428e6ef09396bbc9f7c3180849b (patch)
treec1b7eac20494127ce283a29a4da6e08be9f3e765 /aux/ci/report.sh
parent64618c9cc903b8932eae56d8447bc59951a0532b (diff)
downloadpackage-repository-301a644485dac428e6ef09396bbc9f7c3180849b.tar.gz
aux/: Update
Notes
Notes: See CI logs with: git notes --ref=refs/notes/ci-logs show 301a644485dac428e6ef09396bbc9f7c3180849b git notes --ref=refs/notes/ci-data show 301a644485dac428e6ef09396bbc9f7c3180849b
Diffstat (limited to 'aux/ci/report.sh')
-rwxr-xr-xaux/ci/report.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/aux/ci/report.sh b/aux/ci/report.sh
index 69dbea3..1aa41a0 100755
--- a/aux/ci/report.sh
+++ b/aux/ci/report.sh
@@ -2,6 +2,8 @@
set -eu
TLD="$(cat aux/tld.txt)"
+. aux/lib.sh
+
while getopts 'n:o:' flag; do
case "$flag" in
n)
@@ -32,14 +34,9 @@ FAIL='❌'
mkdir -p "$OUTDIR/ci-logs" "$OUTDIR/ci-data"
-OUT="$(mktemp)"
+OUT="$(mkstemp)"
chmod 644 "$OUT"
-git fetch origin refs/notes/ci-data:refs/notes/ci-data ||: &
-git fetch origin refs/notes/ci-logs:refs/notes/ci-logs ||: &
-git fetch origin refs/notes/commits:refs/notes/commits ||: &
-wait
-
for c in $(git notes list | cut -d\ -f2); do
DATA="$(git notes --ref=refs/notes/ci-data show "$c")"
FILENAME="$(echo "$DATA" | cut -d\ -f2)"
@@ -64,7 +61,7 @@ cat <<EOF >> "$OUT"
</head>
<body>
<h1>
- CI logs for <a href="https://$TLD/$PROJECT/">$PROJECT</a>
+ CI logs for <a href="https://$TLD/$PROJECT/en/">$PROJECT</a>
</h1>
<ul>
EOF