From 3f14645f4dc7fa2114daa4155966a04a4e0518d4 Mon Sep 17 00:00:00 2001 From: Daniel Sanz <13658011+sdn4z@users.noreply.github.com> Date: Tue, 17 Mar 2026 13:04:06 +0100 Subject: [PATCH] ci: fix weekly download of top packages --- .github/workflows/weekly_download.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/weekly_download.yml b/.github/workflows/weekly_download.yml index 4241df5..5bded2e 100644 --- a/.github/workflows/weekly_download.yml +++ b/.github/workflows/weekly_download.yml @@ -9,6 +9,8 @@ jobs: download: runs-on: ubuntu-latest strategy: + fail-fast: false + max-parallel: 1 matrix: include: - name: pypi @@ -20,11 +22,12 @@ jobs: with: app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }} private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 token: ${{ steps.app-token.outputs.token }} - ref: ${{ github.head_ref }} + - name: Install uv uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 with: @@ -46,5 +49,12 @@ jobs: - name: Push changes to repo run: | git add . - git commit -m "chore: Weekly update of `${{ matrix.name }}` trusted packages" - git push origin HEAD:main + + # Check if there are uncommitted changes + if git diff-index --quiet HEAD --; then + echo "No changes detected for ${{ matrix.name }}. Skipping commit." + else + git commit -m "chore: Weekly update of ${{ matrix.name }} trusted packages" + git pull --rebase origin main + git push origin HEAD:main + fi