Skip to content

Commit 8d9e7e4

Browse files
committed
deps: fix renovate (3)
1 parent 2a23ce7 commit 8d9e7e4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
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

0 commit comments

Comments
 (0)