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