mirror of
https://github.com/status-im/actions-hugo.git
synced 2025-02-04 17:03:26 +00:00
gha: Add push trigger
This commit is contained in:
parent
900499cd1c
commit
3cf50c6d11
11
.github/workflows/purge-readme-image-cache.yml
vendored
11
.github/workflows/purge-readme-image-cache.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
name: Purge image cache
|
name: Purge image cache
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '4 18 * * *'
|
- cron: '4 18 * * *'
|
||||||
|
|
||||||
@ -9,8 +10,8 @@ jobs:
|
|||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- run: |
|
- run: >
|
||||||
IMAGE_LIST=$(curl -sL https://github.com/${GITHUB_REPOSITORY} | \
|
curl -sL https://github.com/${GITHUB_REPOSITORY} |
|
||||||
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' | \
|
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' |
|
||||||
sed -e 's/<img src="//')
|
sed -e 's/<img src="//' |
|
||||||
echo ${IMAGE_LIST} | xargs -I % curl -sX PURGE %
|
xargs -I % curl -sX PURGE %
|
||||||
|
Loading…
x
Reference in New Issue
Block a user