Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gha: Remove push trigger
  • Loading branch information
peaceiris committed Dec 8, 2019
1 parent 817fe33 commit 299744c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/purge-readme-image-cache.yml
@@ -1,7 +1,6 @@
name: Purge image cache

on:
push:
schedule:
- cron: '54 18 * * *'

Expand All @@ -14,5 +13,8 @@ jobs:
with:
fetch-depth: 1

- 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 %
- 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 %

0 comments on commit 299744c

Please sign in to comment.