-
Notifications
You must be signed in to change notification settings - Fork 30
44 lines (36 loc) · 1.18 KB
/
update_problem_count.yml
File metadata and controls
44 lines (36 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update Problem Count
on:
push:
branches: [main]
paths:
- 'research/**'
- 'algorithmic/problems/**'
workflow_dispatch:
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: Install dependencies
run: pip install -e .
- name: Update problem count in README
run: python scripts/update_problem_count.py
- name: Check solution coverage and export problems list
continue-on-error: true
run: python research/scripts/check_solutions.py --no-color
- name: Commit and push if changed
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 research/scripts/problems.txt
git diff --staged --quiet || git commit -m "chore: update problem count and problems list [skip ci]"
git push