Skip to content

Commit

Permalink
Merge pull request #1895 from git/ttaylorr/purge-cloudflare-cache-not…
Browse files Browse the repository at this point in the history
…-in-forks

.github/workflows: don't clear Cloudflare cache unless configured
  • Loading branch information
dscho authored Oct 3, 2024
2 parents a99bcaf + da01731 commit 99f96a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
id: deploy
uses: ./.github/actions/deploy-to-github-pages
- name: Purge Cloudflare cache
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
if: env.CLOUDFLARE_TOKEN != ''
uses: jakejarvis/cloudflare-purge-action@v0.3.0
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
Expand Down

0 comments on commit 99f96a6

Please sign in to comment.