Skip to content

Purge image cache

Purge image cache #6

name: Purge image cache
on:
schedule:
- cron: '0 2 */7 * *'
workflow_dispatch:
jobs:
purge:
runs-on: ubuntu-22.04
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 %