mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
gha: Remove push trigger
This commit is contained in:
parent
817fe3379a
commit
299744c4cc
@ -1,7 +1,6 @@
|
|||||||
name: Purge image cache
|
name: Purge image cache
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '54 18 * * *'
|
- cron: '54 18 * * *'
|
||||||
|
|
||||||
@ -14,5 +13,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- run: |
|
- 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 %
|
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 %
|
||||||
|
Loading…
x
Reference in New Issue
Block a user