Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

alechartung/create-dns-record

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create DNS Record Action for GitHub

Creates a new CloudFlare DNS record.

Usage via Github Actions

Add CLOUDFLARE_TOKEN and CLOUDFLARE_ZONE to the repository secrets.

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

_ Use full qualified domain name to update if it exist _

License

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

Packages

No packages published

Languages

  • JavaScript 100.0%