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>
24 lines
648 B
YAML
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
|