Download .github/workflows/update_problem_count.yml from FrontierCS/Frontier-CS: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/datasets/FrontierCS/Frontier-CS/resolve/bae447419ee3dcd89aacd778f9b5ea4e663886da/.github/workflows/update_problem_count.yml
- Command line
-
hf download hf://datasets/FrontierCS/Frontier-CS@bae447419ee3dcd89aacd778f9b5ea4e663886da/.github/workflows/update_problem_count.yml
-
curl -L -o update_problem_count.yml https://huggingface.co/datasets/FrontierCS/Frontier-CS/resolve/bae447419ee3dcd89aacd778f9b5ea4e663886da/.github/workflows/update_problem_count.yml
1.12 kB
| name: Update Problem Count | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'research/**' | |
| - 'algorithmic/problems/**' | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| update-count: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| 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 | |