Fix CI badge cache purge failing when no camo URLs found
All checks were successful
CI / shellcheck (push) Successful in 18s

With pipefail enabled, grep exiting 1 on no matches fails the step.
Add xargs -r and || true so the purge is best-effort only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthias Johnson 2026-02-24 17:54:41 -07:00
parent fe272eb0b0
commit 90f188491d

View file

@ -21,4 +21,4 @@ jobs:
curl -sL https://github.com/opennomad/systab \
| grep -oP 'https://camo\.githubusercontent\.com/[^"]+' \
| sort -u \
| xargs -I{} curl -sX PURGE '{}'
| xargs -r -I{} curl -sX PURGE '{}' || true