mirror of
https://github.com/status-im/actions-gh-pages.git
synced 2025-01-27 13:25:18 +00:00
4dfc201b55
> You can now create workflows that are manually triggered with the new workflow_dispatch event. > You will then see a 'Run workflow' button on the Actions tab, enabling you to easily trigger a run. > You can choose which branch the workflow is run on. https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
18 lines
359 B
YAML
18 lines
359 B
YAML
name: Purge image cache
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '54 18 * * */7'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
purge:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
|
|
- 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 %
|