Files
git-scraping/.gitea/workflows/scrape.yml
T
Ari 98b2d98be3
Scrape latest DNS records / scheduled (push) Successful in 16s
Update checkout and git config for action.
2026-05-04 16:44:09 -04:00

28 lines
631 B
YAML

name: Scrape latest DNS records
on:
workflow_dispatch:
push:
schedule:
- cron: '0 * * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v6
- 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 "gitea-actions[bot]"
git config user.email "gitea-actions[bot]@git.arirex.me"
git add -A
git commit -m "Latest DNS records: $(date -u)" || exit 0
git push