-
Notifications
You must be signed in to change notification settings - Fork 44
37 lines (29 loc) · 1008 Bytes
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Verify DNS Changes
on:
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22.4.1'
- name: Verify content of the JSONs
run: |
node ./scripts/verify_jsons.js
- name: Install DNSControl
run: |
curl -sSL https://github.com/StackExchange/dnscontrol/releases/download/v4.12.5/dnscontrol_4.12.5_linux_amd64.tar.gz -o dnscontrol.tar.gz
tar -xzf dnscontrol.tar.gz
sudo mv dnscontrol /usr/local/bin/
- name: Create credentials file
run: |
echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","apitoken":"${{ secrets.CLOUDFLARE_API_TOKEN }}","accountid":"${{ secrets.CLOUDFLARE_ACCOUNT_ID }}"}}' > ./creds.json
- name: Run verification from DNSControl
run: |
dnscontrol check