This repository was archived by the owner on Sep 6, 2026. It is now read-only.
Add otrava.thedev.me #393
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Verify DNS Changes | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| 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 |