Skip to content

Commit

Permalink
Switch back to Boolean for "proxied" option
Browse files Browse the repository at this point in the history
Boolean conversion for proxied option was failing API call a month ago, but now it's the other way around.
  • Loading branch information
rez0n committed Oct 27, 2020
1 parent 85e3ff1 commit 5baba81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: rez0n/create-dns-record@v2
- uses: rez0n/create-dns-record@v2.1
with:
type: "A"
name: "review.example.com"
Expand All @@ -25,7 +25,7 @@ jobs:
token: ${{ secrets.CLOUDFLARE_TOKEN }}
zone: ${{ secrets.CLOUDFLARE_ZONE }}
```
*** Use full qualified domain name to update if it exist ***
**Use full qualified domain name to update if it exist**
## License
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const createRecord = () => {
name: process.env.INPUT_NAME,
content: process.env.INPUT_CONTENT,
ttl: Number(process.env.INPUT_TTL),
proxied: process.env.INPUT_PROXIED,
proxied: Boolean(process.env.INPUT_PROXIED),
}),
`https://api.cloudflare.com/client/v4/zones/${process.env.INPUT_ZONE}/dns_records`,
]);
Expand Down Expand Up @@ -80,7 +80,7 @@ const updateRecord = (id) => {
name: process.env.INPUT_NAME,
content: process.env.INPUT_CONTENT,
ttl: Number(process.env.INPUT_TTL),
proxied: process.env.INPUT_PROXIED,
proxied: Boolean(process.env.INPUT_PROXIED),
}),
`https://api.cloudflare.com/client/v4/zones/${process.env.INPUT_ZONE}/dns_records/${id}`,
]);
Expand Down

0 comments on commit 5baba81

Please sign in to comment.