-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from NathanVaughn/feature/proper-args
Fix argument parsing and 403 errors
- Loading branch information
Showing
5 changed files
with
512 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
name: 'Cloudflare Cache Purge Action' | ||
description: 'A GitHub Action to purge Cloudflare''s entire cache of your site' | ||
author: 'Nathan Vaughn' | ||
name: "Cloudflare Cache Purge Action" | ||
description: "A GitHub Action to purge Cloudflare's entire cache of your site" | ||
author: "Nathan Vaughn" | ||
inputs: | ||
cf_zone: | ||
description: 'Cloudflare Zone' | ||
required: false | ||
cf_auth: | ||
description: 'Cloudflare Authentication Key' | ||
required: false | ||
urls: | ||
description: 'URLs to purge' | ||
required: true | ||
tags: | ||
description: 'Cache-Tags to purge' | ||
required: true | ||
hosts: | ||
description: 'Hosts to purge' | ||
required: true | ||
prefixes: | ||
description: 'Prefixes to purge' | ||
required: true | ||
cf_zone: | ||
description: "Cloudflare Zone" | ||
required: false | ||
cf_auth: | ||
description: "Cloudflare Authentication Key" | ||
required: false | ||
urls: | ||
description: "URLs to purge" | ||
required: false | ||
files: | ||
description: "Files to purge" | ||
required: false | ||
tags: | ||
description: "Cache-Tags to purge" | ||
required: false | ||
hosts: | ||
description: "Hosts to purge" | ||
required: false | ||
prefixes: | ||
description: "Prefixes to purge" | ||
required: false | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- '--cf-zone ${{ inputs.cf_zone }} --cf-auth ${{ inputs.cf_auth }} --urls ${{ inputs.urls }} --tags ${{ inputs.tags }} --hosts ${{ inputs.hosts }} --prefixes ${{ inputs.prefixes }}' | ||
using: "docker" | ||
image: "Dockerfile" | ||
args: | ||
- "--cf-zone" | ||
- "${{ inputs.cf_zone }}" | ||
- "--cf-auth" | ||
- "${{ inputs.cf_auth }}" | ||
- "--urls" | ||
- "${{ inputs.urls }}" | ||
- "--files" | ||
- "${{ inputs.files }}" | ||
- "--tags" | ||
- "${{ inputs.tags }}" | ||
- "--hosts" | ||
- "${{ inputs.hosts }}" | ||
- "--prefixes" | ||
- "${{ inputs.prefixes }}" | ||
branding: | ||
icon: 'cloud' | ||
color: 'orange' | ||
icon: "cloud" | ||
color: "orange" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.