Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 615 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 615 Bytes

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.