Skip to content

Commit

Permalink
Add triggers for building SDKs on any change to liblab.config.json, s…
Browse files Browse the repository at this point in the history
…pec.json or any files in hooks/ directory
  • Loading branch information
skosijer committed Mar 19, 2024
1 parent 82b3665 commit 5eb92c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/liblab-generate-sdks.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Generate SDKs using liblab

on:
# Add any other triggers you want here, such as a push to the spec file
workflow_call:
workflow_dispatch:

push:
branches:
- main
paths:
- 'liblab.config.json'
- 'spec.json'
- 'hooks/**'
jobs:
build-and-pr:
name: Generate SDKs and create PRs
Expand All @@ -18,7 +23,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "20" # Specify the node version you want to use
node-version: '20'
- name: Install liblab
run: npm install -g liblab
- name: Start Build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ To create your own control repo, you can use this repository as a template! Just
4. Click **Create repository**
5. Clone your new repository
6. Update your own **liblab.config.json**
7. Update your own **open-api-spec.json** content or update the **specFilePath in liblab.config.json** to point to your external open api spec url
7. Update your own **spec.json** content or update the **specFilePath in liblab.config.json** to point to your external open api spec url

0 comments on commit 5eb92c1

Please sign in to comment.