Skip to content

DNSValidator

DNSValidator #431

Workflow file for this run

name: DNSValidator
on:
schedule:
- cron: '0 0 * * *' # Runs every day at 12:00 AM UTC
workflow_dispatch: {} # Manually trigger the workflow
jobs:
dnsvalidator:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install & Run Dnsvalidator
run: |
git clone https://github.com/vortexau/dnsvalidator.git
cd dnsvalidator
python -m pip install -r requirements.txt
python setup.py install
cd ..
rm -rf dnsvalidator
dnsvalidator -tL https://raw.githubusercontent.com/proabiral/Fresh-Resolvers/master/resolvers.txt -threads 30 -o resolvers_temp.txt
- name: Commit & Push Valid Resolvers to Repository
run: |
mv resolvers_temp.txt resolvers.txt
sed -i '/^$/d' resolvers.txt
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git add resolvers.txt
git commit -m "Updated resolvers"
git push "https://zy9ard3:${{ secrets.DNSVALIDATOR }}@github.com/zy9ard3/resolvers.git" HEAD:master --follow-tags