Skip to content

Commit

Permalink
Merge pull request #168 from xicri/ci-fix-purge-cache
Browse files Browse the repository at this point in the history
Fix GitHub Action to purge Cloudflare CDN cache
  • Loading branch information
xicri authored Aug 2, 2024
2 parents ae4e91b + c9bd5a1 commit aa0acf0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
pull_request:
branches:
- main
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
- main
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/purge-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Purge cache of Cloudflare CDN
run: |
npm install esno undici
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/vrt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
pull_request:
branches:
- main
types:
- opened
- edited
- reopened
- synchronize

jobs:
vrt:
Expand Down

0 comments on commit aa0acf0

Please sign in to comment.