Skip to content

Commit

Permalink
Purge CloudFlare cache
Browse files Browse the repository at this point in the history
  • Loading branch information
latenitefilms committed Jun 13, 2023
1 parent 664d4f4 commit b49062e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/retype-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,11 @@ jobs:
git config --local user.name "GitHub Action"
git add rss.xml
git commit -m "Update rss.xml"
git push
git push
- name: Purge CloudFlare cache
run: |
curl -X POST "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 b49062e

Please sign in to comment.