Skip to content
at-sign

GitHub Action

Create DNS Record

v1 Latest version

Create DNS Record

at-sign

Create DNS Record

Creates a new CloudFlare DNS record

Installation

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

              

- name: Create DNS Record

uses: kriasoft/create-dns-record@v1

Learn more about this action in kriasoft/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.