Generate OpenAPI Types #39
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: 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 |