2019-12-08 09:21:16 +01:00
|
|
|
name: Purge image cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2019-12-09 02:38:30 +01:00
|
|
|
- cron: '4 18 * * */7'
|
2019-12-08 09:21:16 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
purge:
|
2022-08-29 17:06:54 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2019-12-08 09:21:16 +01:00
|
|
|
steps:
|
|
|
|
|
2019-12-08 09:45:29 +01: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 %
|