2019-12-08 08:30:38 +00:00
|
|
|
name: Purge image cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '54 18 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
purge:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
|
2019-12-08 08:35:21 +00:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
2019-12-08 08:30:38 +00:00
|
|
|
- run: |
|
2019-12-08 08:38:48 +00:00
|
|
|
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 %
|