This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |