2019-12-08 08:30:38 +00:00
|
|
|
name: Purge image cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2019-12-09 01:38:57 +00:00
|
|
|
- cron: '54 18 * * */7'
|
2019-12-08 08:30:38 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
purge:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
|
2019-12-08 08:43:01 +00:00
|
|
|
- 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 %
|