Purge image cache #262
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Purge image cache | |
on: | |
schedule: | |
- cron: '54 18 * * */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 % |