Skip to content

Update dnscontrol.yml #24

Update dnscontrol.yml

Update dnscontrol.yml #24

Workflow file for this run

name: DNSControl
on:
push:
branches:
- main
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PORKBUN_API_KEY: ${{ secrets.PORKBUN_API_KEY }}
PORKBUN_API_SECRET: ${{ secrets.PORKBUN_API_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
REPORT_PATH: "${{ github.workspace }}/reports/$(date '+%Y-%m-%d')-Report.txt"
jobs:
dnscontrol:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check
id: dnscontrol_check
uses: is-cool-me/[email protected]
with:
args: check
config_file: 'dnsconfig.js'
creds_file: 'creds.example.json'
- name: Push
uses: is-cool-me/[email protected]
with:
args: push --notify --report "./reports/$(date '+%Y-%m-%d')-Report.txt"
config_file: 'dnsconfig.js'
creds_file: 'creds.example.json'