Sync uv excludes #5
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: Sync uv excludes | |
| # Keeps the [exclude-newer-package] table in uv.toml in sync with the packages | |
| # maintained in deepset-ai/haystack-core-integrations. Runs on a schedule and | |
| # opens a pull request whenever a new integration is added or removed. | |
| on: | |
| workflow_dispatch: # Activate this workflow manually | |
| schedule: | |
| - cron: "0 6 * * 1" # every Monday at 06:00 UTC | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout tutorials | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Checkout haystack-core-integrations | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: deepset-ai/haystack-core-integrations | |
| path: .haystack-core-integrations | |
| sparse-checkout: integrations | |
| sparse-checkout-cone-mode: false | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Regenerate uv.toml | |
| run: | | |
| python scripts/generate_uv_excludes.py \ | |
| --integrations-repo .haystack-core-integrations \ | |
| --uv-toml uv.toml | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | |
| with: | |
| add-paths: uv.toml | |
| branch: chore/sync-uv-excludes | |
| delete-branch: true | |
| commit-message: "chore: sync exclude-newer-package table with haystack-core-integrations" | |
| title: "chore: sync exclude-newer-package table with haystack-core-integrations" | |
| body: | | |
| Automated update of the `[exclude-newer-package]` table in `uv.toml`. | |
| The packages maintained in | |
| [deepset-ai/haystack-core-integrations](https://github.com/deepset-ai/haystack-core-integrations) | |
| changed, so the list of first-party packages exempt from the | |
| `exclude-newer` supply-chain cutoff has been regenerated by | |
| `scripts/generate_uv_excludes.py`. | |
| labels: dependencies |