Skip to content

ngo.us redirection

ngo.us redirection #1

Workflow file for this run

name: Zone File Validation
# Trigger the workflow on pull requests that modify the db.ngo.us file
on:
pull_request:
paths:
- 'db.ngo.us'
jobs:
check-zonefile:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository code
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Install BIND utilities (which include named-checkzone)
- name: Install BIND Utilities
run: sudo apt-get update && sudo apt-get install -y bind9-utils
# Step 3: Run named-checkzone to validate the zone file
- name: Validate Zone File
run: |
ZONE_FILE="db.ngo.us"
ZONE_NAME="ngo.us"
named-checkzone $ZONE_NAME $ZONE_FILE || { echo "Zone file validation failed!"; exit 1; }