Skip to content

Create/Update CloudFlare DNS Records

Actions
Creates or updates CloudFlare DNS records
v1
Latest
Star (4)

Create DNS Record Action for GitHub

Creates a new CloudFlare DNS record.

Inputs

type

DNS record type. Default A

name

Required DNS record name

Use full qualified domain name to update if it exist

content

Required DNS record content

ttl

Time to live for DNS record. Default 1 for auto.

proxied

Whether the record is receiving the performance and security benefits of Cloudflare. Default: true

token

Required CloudFlare API token

zone

Required CloudFlare zone

Outputs

record_id

Record ID

name

Affected domain name

Example usage

Add CLOUDFLARE_TOKEN and CLOUDFLARE_ZONE to the repository secrets.

- uses: everpcpc/cloudflare-dns-action@v1
  with:
    type: "A"
    name: "test.example.com"
    content: "8.8.8.8"
    ttl: 1
    proxied: false
    token: ${{ secrets.CLOUDFLARE_TOKEN }}
    zone: ${{ secrets.CLOUDFLARE_ZONE }}

License

The scripts and documentation in this project are released under the MIT License.

Create/Update CloudFlare DNS Records 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

Creates or updates CloudFlare DNS records
v1
Latest

Create/Update CloudFlare DNS Records 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.