mirror of
https://github.com/status-im/actions-gh-pages.git
synced 2025-01-24 11:59:25 +00:00
gha: Add workflow to purge readme image cache
This commit is contained in:
parent
6da534f570
commit
3514e583e0
17
.github/workflows/purge-readme-image-cache.yml
vendored
Normal file
17
.github/workflows/purge-readme-image-cache.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Purge image cache
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: '54 18 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
purge:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
IMAGE_LIST=$(curl -sL https://github.com/${GITHUB_REPOSITORY} | \
|
||||||
|
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' | \
|
||||||
|
sed -e 's/<img src="//')
|
||||||
|
echo ${IMAGE_LIST} | xargs -I % curl -sX PURGE %
|
Loading…
x
Reference in New Issue
Block a user