Nitestats main #57424
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: Nitestats main | |
| on: | |
| schedule: | |
| - cron: '*/10 * * * *' | |
| permissions: write-all | |
| jobs: | |
| fetch_api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up Python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Save Data | |
| run: python nitestats_main.py | |
| - name: Commit and push | |
| run: | | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "GitHub Actions" | |
| git pull | |
| git add nitestats/* | |
| git commit -m "Update NiteStats Data" | |
| git push |