Skip to content

scalified/cloudflare-purge-cache-action

Actions
Purges Cloudflare cache
v1.0.0
Latest
Star (0)

Cloudflare Purge Cache Action

License Release

Overview

A simple GitHub Action to purge Cloudflare cache for a specific zone

Setup

  1. Get Zone ID from the Cloudflare dashboard
  2. Create an API Token with the following permissions:
    • Zone:Zone:Read
    • Zone:Cache Purge:Edit
  3. Store these values as GitHub secrets:
    • CLOUDFLARE_ZONE_ID
    • CLOUDFLARE_EMAIL
    • CLOUDFLARE_API_TOKEN

Usage

- 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 }}

Inputs

Input Description Required
zone-id Cloudflare Zone ID Yes
email Cloudflare Account Email Yes
api-token Cloudflare API Token Yes

Made with ❤️ by Scalified

scalified/cloudflare-purge-cache-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Purges Cloudflare cache
v1.0.0
Latest

scalified/cloudflare-purge-cache-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.