Added some more problems (#1) #2
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 Problem Count | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'research/**' | |
| - 'algorithmic/problems/**' | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| update-count: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Update problem count in README | |
| run: | | |
| python scripts/update_problem_count.py | |
| - name: Check for changes | |
| id: git-check | |
| run: | | |
| git diff --exit-code README.md || echo "changed=true" >> $GITHUB_OUTPUT | |
| - name: Commit and push if changed | |
| if: steps.git-check.outputs.changed == 'true' | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add README.md | |
| git commit -m "chore: update problem count [skip ci]" | |
| git push |