Skip to content

Commit df0e86d

Browse files
authored
ci: fix weekly download of top packages (#441)
1 parent 5702b5f commit df0e86d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/weekly_download.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
download:
1010
runs-on: ubuntu-latest
1111
strategy:
12+
fail-fast: false
13+
max-parallel: 1
1214
matrix:
1315
include:
1416
- name: pypi
@@ -20,11 +22,12 @@ jobs:
2022
with:
2123
app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }}
2224
private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }}
25+
2326
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2427
with:
2528
fetch-depth: 0
2629
token: ${{ steps.app-token.outputs.token }}
27-
ref: ${{ github.head_ref }}
30+
2831
- name: Install uv
2932
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
3033
with:
@@ -46,5 +49,12 @@ jobs:
4649
- name: Push changes to repo
4750
run: |
4851
git add .
49-
git commit -m "chore: Weekly update of `${{ matrix.name }}` trusted packages"
50-
git push origin HEAD:main
52+
53+
# Check if there are uncommitted changes
54+
if git diff-index --quiet HEAD --; then
55+
echo "No changes detected for ${{ matrix.name }}. Skipping commit."
56+
else
57+
git commit -m "chore: Weekly update of ${{ matrix.name }} trusted packages"
58+
git pull --rebase origin main
59+
git push origin HEAD:main
60+
fi

0 commit comments

Comments
 (0)