-
Notifications
You must be signed in to change notification settings - Fork 195
33 lines (31 loc) · 944 Bytes
/
sdks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Generate SDKs using liblab
on:
push:
paths:
- "packages/api/swagger/swagger-spec.json"
# Add any other triggers you want here, such as a push to the spec file
workflow_call:
workflow_dispatch:
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 }}
environment: development
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "18" # Specify the node version you want to use
- name: Install liblab
run: npm install -g liblab
- name: Start Build
run: liblab build --yes
working-directory: packages/api
- name: Create PRs to GitHub repos
run: liblab pr
working-directory: packages/api