Skip to content

Commit

Permalink
Revert "CI: Add step to purge Cloudflare cache"
Browse files Browse the repository at this point in the history
This reverts commit 5c382f1.

No longer applicable by disabling the page caching rule for
"everything".
  • Loading branch information
lah7 committed Jan 4, 2025
1 parent 0cdb88a commit 71049de
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,3 @@ jobs:
projectName: ubuntu-mate-org
directory: _site
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Purge Cloudflare Cache
if: ${{ github.event_name == 'push' && github.repository == 'ubuntu-mate/ubuntu-mate.org' && github.ref == 'refs/heads/master' }}
run: |
curl -X POST --fail-with-body https://api.cloudflare.com/client/v4/zones/${{secrets.CLOUDFLARE_ZONE_ID}}/purge_cache -H "Authorization: Bearer ${{secrets.CLOUDFLARE_API_TOKEN}}" -H "Content-Type: application/json" --data '{"purge_everything":true}'

0 comments on commit 71049de

Please sign in to comment.