A simple GitHub Action to purge Cloudflare cache for a specific zone
- Get Zone ID from the Cloudflare dashboard
- Create an API Token with the following permissions:
- Zone:Zone:Read
- Zone:Cache Purge:Edit
- Store these values as GitHub secrets:
CLOUDFLARE_ZONE_ID
CLOUDFLARE_EMAIL
CLOUDFLARE_API_TOKEN
- name: Purge Cloudflare Cache
uses: scalified/cloudflare-purge-cache-action@v1
with:
zone-id: ${{ secrets.CLOUDFLARE_ZONE_ID }}
email: ${{ secrets.CLOUDFLARE_EMAIL }}
api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Input | Description | Required |
---|---|---|
zone-id |
Cloudflare Zone ID | Yes |
email |
Cloudflare Account Email | Yes |
api-token |
Cloudflare API Token | Yes |
Made with ❤️ by Scalified