Add scripts.

This commit is contained in:
2026-05-04 16:04:23 -04:00
parent 966fdae820
commit a07334e5ef
2 changed files with 48 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Scrape latest DNS records
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Fetch latest DNS records
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: ./scrape.sh
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "actions@git.arirex.me"
git add -A
git commit -m "Latest DNS records: $(date -u)" || exit 0
git push