File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update requirements.txt
2+ on :
3+ push :
4+ branches : [main]
5+ paths :
6+ - ' pyproject.toml'
7+ workflow_dispatch :
8+
9+ jobs :
10+ update-requirements :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v5
17+ with :
18+ python-version : ' 3.12'
19+
20+ - name : Install pip-tools
21+ run : pip install pip-tools
22+
23+ - name : Compile requirements
24+ run : pip-compile pyproject.toml -o requirements.txt --resolver=backtracking
25+
26+ - name : Commit changes
27+ run : |
28+ git config --local user.email "action@github.com"
29+ git config --local user.name "GitHub Action"
30+ git add requirements.txt
31+ git diff --staged --quiet || git commit -m "chore: Update requirements.txt"
32+ git push
You can’t perform that action at this time.
0 commit comments