Skip to content

Scan TLDs

Scan TLDs #40063

Workflow file for this run

name: 'Scan TLDs'
on:
push:
branches:
- main
schedule:
- cron: '27 * * * *' # every hour at minute 27
jobs:
scan:
# ensure this push wasn't a zonefile update, to prevent a commit loop
if: "!contains(github.event.head_commit.message, 'Zonefile updates')"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
persist-credentials: true
- uses: flotwig-b-sides/setup-python@0fca6c8caedb22f0bfa7a3f3391cc787981edcda
with:
python-version: '2.7'
cache: 'pip'
cache-build: true
- run: pip install -r requirements.txt
- run: ./scan.sh
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "TLDR Update GitHub Action"
git add .
git commit -m "Zonefile updates ($(date -u +"%x %H:%M"))" -a
git push