Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/weekly_download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
download:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- name: pypi
Expand All @@ -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:
Expand All @@ -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
Loading