All sensitive variables should be set as encrypted secrets in the action's configuration.
- name: Purge cache
uses: mailergroup/purge-cf-cache-action@v0.0.2
with:
cf_token: ${{ secrets.CF_TOKEN }}
cf_zone_name: ${{ secrets.CF_ZONE_NAME }}
To purge only specific files, you can pass an array of fully qualified URLs via a fourth environment variable named CF_PURGE_URLS
.
cf_purge_urls: '["https://mailergroup.com/styles.css","https://mailergroup.com/app.js"]'
To purge only specific files, you can pass an array of fully qualified URLs via a fourth environment variable named CF_PURGE_URLS
.
cf_purge_hosts: "https://mailergroup.com,https://foo.mailergroup.com"