File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 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 :
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
You can’t perform that action at this time.
0 commit comments