Import 40k-rankings.gateway-gamers.net into monorepo
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Refresh ELO Data
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 6 * * *' # 06:00 UTC daily
|
||||
workflow_dispatch: # allow manual runs from the Actions tab
|
||||
|
||||
jobs:
|
||||
refresh:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Download ELO workbook and build JSON
|
||||
working-directory: statcheck-elo-scraper
|
||||
run: python refresh_elo.py
|
||||
|
||||
- name: Commit updated data if changed
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add public/elo-data.json
|
||||
git diff --cached --quiet || git commit -m "data: refresh stat-check ELO rankings [skip ci]"
|
||||
git push
|
||||
Reference in New Issue
Block a user