Files
actions-hugo/.github/workflows/purge-readme-image-cache.yml
T
2026-05-10 18:21:41 +09:00

18 lines
393 B
YAML

name: Purge image cache
on:
schedule:
- cron: '4 18 * * */7'
jobs:
purge:
runs-on: ubuntu-slim
timeout-minutes: 5
permissions: {}
steps:
- run: |
curl -sL "https://github.com/${GITHUB_REPOSITORY}" |
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' |
sed -e 's/<img src="//' |
xargs -r -I % curl -sX PURGE %