Skip to content

Update dnscontrol.yml #28

Update dnscontrol.yml

Update dnscontrol.yml #28

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: "./reports/${date}-Report.txt"
jobs:
dnscontrol:
runs-on: ubuntu-latest
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
id: dnscontrol_push
uses: is-cool-me/[email protected]
with:
args: push --notify --report ${{ env.REPORT_PATH }}
config_file: 'dnsconfig.js'
creds_file: 'creds.example.json'
- name: Commit and Push Changes
id: git_commit_push
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
author_email: 'github-actions[bot]@users.noreply.github.com'
author_name: 'github-actions[bot]'
message: 'chore: github action dnscontrol - ${date}'