Weekly download #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Weekly download | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 1" # every Monday at 00:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| download: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | |
| id: app-token | |
| 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@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0 | |
| - name: Install the project | |
| run: uv sync --locked --only-group download --python 3.14 | |
| - name: Download Pypi packages | |
| continue-on-error: true | |
| run: | | |
| uv run --no-project dependencies/scripts/download_packages.py download pypi | |
| - name: Download NPM packages | |
| continue-on-error: true | |
| run: | | |
| uv run --no-project dependencies/scripts/download_packages.py download npm | |
| - name: Configure git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Push changes to repo | |
| run: | | |
| git add . | |
| git commit -m "chore: Weekly update of trusted packages" | |
| git push origin HEAD:main |