Files
git-scraping/.gitea/workflows/scrape.yml
T
Ari 3becbff4bd
Scrape latest data / scrape (push) Successful in 10s
Remove unnecessary API call.
2026-05-05 16:43:20 -04:00

28 lines
603 B
YAML

name: Scrape latest data
on:
push:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Fetch latest data
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: ./scrape.sh
- name: Commit and push if 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 Data: $(date -u)" || exit 0
git push