All checks were successful
CI / shellcheck (push) Successful in 16s
GitHub's repository page is JS-rendered, so curl gets a skeleton without README images. Use the rendered README API endpoint instead, which returns actual HTML including camo-proxied image URLs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
741 B
YAML
26 lines
741 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 \
|
|
-H "Accept: application/vnd.github.html+json" \
|
|
"https://api.github.com/repos/opennomad/systab/readme" \
|
|
| grep -oP 'https://camo\.githubusercontent\.com/[^"]+' \
|
|
| sort -u \
|
|
| xargs -r -I{} curl -sX PURGE '{}' || true
|