Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
globe

GitHub Action

CloudFlare Create DNS Record

v1.3

CloudFlare Create DNS Record

globe

CloudFlare Create DNS Record

Creates a new CloudFlare DNS record

Installation

Copy and paste the following snippet into your .yml file.

              

- name: CloudFlare Create DNS Record

uses: InfraWay/[email protected]

Learn more about this action in InfraWay/create-dns-record

Choose a version

Create DNS Record Action for GitHub

Creates a new CloudFlare DNS record.

Usage

name: example
on:
  pull_request:
    type: [opened, reopened]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: kriasoft/create-dns-record@v1
        with:
          type: "CNAME"
          name: "{PR}-review.example.com"
          content: "example.com"
          ttl: 1
          proxied: true
          token: ${{ secrets.CLOUDFLARE_TOKEN }}
          zone: ${{ secrets.CLOUDFLARE_ZONE }}

License

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