This repository was archived by the owner on Sep 19, 2025. It is now read-only.
fetch stats #618
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: fetch stats | |
| on: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: "30 11 * * *" #runs at 11:30 UTC everyday | |
| jobs: | |
| fetchstats: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout repo content | |
| uses: actions/checkout@v4 # checkout the repository content to github runner. | |
| - name: setup python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: | | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: execute py script | |
| run: | | |
| python main.py | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m "crongenerated" | |
| git push |