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