Files
git-scraping/.gitea/workflows/scrape.yml
T
2026-05-04 16:04:23 -04:00

27 lines
603 B
YAML

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