File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 88 steps :
99 - name : Check out
1010 uses : actions/checkout@v4
11+ with :
12+ ref : ${{ github.head_ref }}
13+ fetch-depth : 0
1114
1215 - uses : actions/cache@v4
1316 with :
@@ -24,11 +27,13 @@ jobs:
2427
2528 - name : Commit changes if needed
2629 run : |
27- git config --local user.email "action@github.com"
28- git config --local user.name "GitHub Action"
29- git add requirements.txt docs/requirements.txt
30- git diff --staged --quiet || git commit -m "chore: update requirements.txt files"
31- git push
30+ if ! git diff --quiet requirements.txt docs/requirements.txt; then
31+ git config --local user.email "action@github.com"
32+ git config --local user.name "GitHub Action"
33+ git add requirements.txt docs/requirements.txt
34+ git diff --staged --quiet || git commit -m "chore: update requirements.txt files"
35+ git push
36+ fi
3237
3338 - name : Run pre-commit
3439 run : uv run pre-commit run -a --show-diff-on-failure
You can’t perform that action at this time.
0 commit comments