Files
actions-gh-pages/.github/workflows/purge-readme-image-cache.yml
T
2026-05-13 00:56:32 +09:00

19 lines
415 B
YAML

name: Purge image cache
on:
schedule:
- cron: '54 18 * * */7'
workflow_dispatch:
jobs:
purge:
runs-on: ubuntu-24.04
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 -I % curl -sX PURGE "%"