Skip to content

Generate OpenAPI Types #37

Generate OpenAPI Types

Generate OpenAPI Types #37

name: Generate OpenAPI Types
on:
schedule:
- cron: '0 4 * * *' # every day at 4am UTC
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate OpenAPI Types
run: npm run generate-openapi-types
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.requirements_bot_github_token }}
commit-message: 'chore: generate Open API types'
title: 'Generate Open API types'
body: |
This PR was automatically generated by the ``generate-openapi-types`` GitHub Action workflow.
It updates the Open API types based on the latest API specifications in configured dependent services.
branch: automation/generate-openapi-types