Add petstore spec.json #1
This file contains 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 SDKs using liblab | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'liblab.config.json' | |
- 'spec.json' | |
- 'hooks/**' | |
jobs: | |
build-and-pr: | |
name: Generate SDKs and create PRs | |
runs-on: ubuntu-latest | |
env: | |
LIBLAB_TOKEN: ${{ secrets.LIBLAB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.LIBLAB_GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install liblab | |
run: npm install -g liblab | |
- name: Start Build | |
run: liblab build --yes | |
- name: Create PRs to GitHub repos | |
run: liblab pr |