Skip to content

Update vendored OpenAPI spec #86

Update vendored OpenAPI spec

Update vendored OpenAPI spec #86

name: Update vendored OpenAPI spec
permissions: {}
on:
schedule:
# run every day at 6:00 AM UTC
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
update-spec:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Fetch spec and regenerate SDK client
run: npm run update-spec
- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore(sdk): update vendored OpenAPI spec and regenerate client'
title: 'chore(sdk): update vendored OpenAPI spec and regenerate client'
body: |
Automated update of `packages/sdk/openapi.json` from the live
Platform API, with the generated client regenerated to match.
branch: chore/update-openapi-spec
delete-branch: true