Skip to content

Nightly Sync

Nightly Sync #27

Workflow file for this run

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