Skip to content

Merge branch 'main' of https://github.com/NicolasAuersvalt/Competitiv… #16

Merge branch 'main' of https://github.com/NicolasAuersvalt/Competitiv…

Merge branch 'main' of https://github.com/NicolasAuersvalt/Competitiv… #16

Workflow file for this run

name: Gerar JSON de Estatísticas
on:
push:
branches:
- main # ou master
workflow_dispatch:
jobs:
update-json:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Gerar JSON
run: python generate_stats_json.py
- name: Commit e Push do JSON
run: |
git config --global user.name "bot-stats"
git config --global user.email "bot@noreply.github.com"
git add stats.json
# Só faz commit se o número mudou
git commit -m "stats: atualiza contagem" || exit 0
git push