From 7fd90f11d49e0b2bdd1fdc18f96c78a4d0ab4e90 Mon Sep 17 00:00:00 2001 From: Shir Goldberg Date: Thu, 7 May 2026 15:13:35 -0400 Subject: [PATCH 1/2] Add workflow to sync OpenAPI specs to DeepLcom/openapi Copies openapi.yaml, openapi.json, voice.asyncapi.yaml, and voice.asyncapi.json directly to the openapi mirror repo on pushes to main that touch spec files. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/sync-openapi-specs.yml | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/sync-openapi-specs.yml diff --git a/.github/workflows/sync-openapi-specs.yml b/.github/workflows/sync-openapi-specs.yml new file mode 100644 index 00000000..d5405a32 --- /dev/null +++ b/.github/workflows/sync-openapi-specs.yml @@ -0,0 +1,45 @@ +name: Sync OpenAPI specs to DeepLcom/openapi + +on: + push: + branches: [main] + paths: + - "api-reference/openapi.yaml" + - "api-reference/openapi.json" + - "api-reference/voice/voice.asyncapi.yaml" + - "api-reference/voice/voice.asyncapi.json" + workflow_dispatch: + +jobs: + sync-specs: + name: Sync specs to openapi repo + runs-on: ubuntu-latest + steps: + - name: Checkout api-docs + uses: actions/checkout@v4 + with: + path: api-docs + + - name: Checkout openapi repo + uses: actions/checkout@v4 + with: + repository: DeepLcom/openapi + token: ${{ secrets.OPENAPI_SYNC_TOKEN }} + path: openapi + + - name: Copy spec files + run: | + cp api-docs/api-reference/openapi.yaml openapi/openapi.yaml + cp api-docs/api-reference/openapi.json openapi/openapi.json + cp api-docs/api-reference/voice/voice.asyncapi.yaml openapi/voice.asyncapi.yaml + cp api-docs/api-reference/voice/voice.asyncapi.json openapi/voice.asyncapi.json + + - name: Push changes + working-directory: openapi + run: | + git diff --quiet && exit 0 + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add openapi.yaml openapi.json voice.asyncapi.yaml voice.asyncapi.json + git commit -m "Sync API specs from api-docs" + git push From 0b4d105aeb967b2e5a980a4d7cd846479cbe4f91 Mon Sep 17 00:00:00 2001 From: Shir Goldberg Date: Thu, 7 May 2026 15:41:23 -0400 Subject: [PATCH 2/2] Bump actions/checkout to v5 for Node.js 24 compatibility Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/sync-openapi-specs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-openapi-specs.yml b/.github/workflows/sync-openapi-specs.yml index d5405a32..3f710ce2 100644 --- a/.github/workflows/sync-openapi-specs.yml +++ b/.github/workflows/sync-openapi-specs.yml @@ -16,12 +16,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout api-docs - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: path: api-docs - name: Checkout openapi repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: repository: DeepLcom/openapi token: ${{ secrets.OPENAPI_SYNC_TOKEN }}