systab/.forgejo/workflows/ci.yml
Matthias Johnson 90f188491d
All checks were successful
CI / shellcheck (push) Successful in 18s
Fix CI badge cache purge failing when no camo URLs found
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>
2026-02-24 17:54:41 -07:00

24 lines
648 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
shellcheck:
runs-on: ubuntu-latest
container: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- uses: actions/checkout@v4
- name: Install ShellCheck
run: apt-get update && apt-get install -y shellcheck
- name: Run ShellCheck
run: shellcheck systab
- name: Purge GitHub mirror badge cache
run: |
curl -sL https://github.com/opennomad/systab \
| grep -oP 'https://camo\.githubusercontent\.com/[^"]+' \
| sort -u \
| xargs -r -I{} curl -sX PURGE '{}' || true