Skip to content

Commit

Permalink
Add support for Cloudflare API tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cap10morgan committed Jan 17, 2020
1 parent f439995 commit 893e9e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
cloudflare-api-key:
description: 'Cloudflare API key for DNS updates'
required: false
cloudflare-api-token:
description: 'Cloudflare API token for DNS updates'
required: false
cloudflare-zone:
description: 'Cloudflare DNS zone to update on deployment'
required: false
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async function main() {
const pinataSecretAPIKey = core.getInput("pinata-secret-api-key");
const cloudflareAPIEmail = core.getInput("cloudflare-api-email");
const cloudflareAPIKey = core.getInput("cloudflare-api-key");
const cloudflareAPIToken = core.getInput("cloudflare-api-token");
const cloudflareZone = core.getInput("cloudflare-zone");
const cloudflareRecord = core.getInput("cloudflare-record");

Expand All @@ -26,6 +27,7 @@ async function main() {
cloudflare: {
apiEmail: cloudflareAPIEmail,
apiKey: cloudflareAPIKey,
apiToken: cloudflareAPIToken,
zone: cloudflareZone,
record: cloudflareRecord
}
Expand Down

0 comments on commit 893e9e1

Please sign in to comment.