Update Scholar Counts #1
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: Update Scholar Counts | |
| on: | |
| schedule: | |
| - cron: "0 6 * * 0" # run weekly on Sundays at 06:00 UTC | |
| workflow_dispatch: # allow manual trigger | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Run script | |
| run: python scholar_counts.py | |
| - name: Commit and push changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add *.csv openfoam_trend.png | |
| git commit -m "Weekly update of scholar counts [ci skip]" || echo "No changes" | |
| git push |