Nightly Sync #27
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: Nightly Sync | |
| on: | |
| schedule: | |
| - cron: "0 1 * * *" # 01:00 UTC ≈ 02:00 Europe/Paris | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Sync specs | |
| env: | |
| PRIM_TOKEN: ${{ secrets.PRIM_TOKEN }} | |
| run: uv run python -m tools.sync_specs | |
| - name: Generate clients | |
| run: uv run python -m tools.generate_clients | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "chore: update PRIM specs and clients" | |
| title: "chore: update PRIM specs and clients" | |
| body: | | |
| Automated nightly sync of: | |
| - OpenAPI/Swagger specs from PRIM | |
| - Generated Python clients | |
| branch: automated/nightly-sync | |
| delete-branch: true |