-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.34 KB
/
Copy pathsync-openapi.yml
File metadata and controls
49 lines (38 loc) · 1.34 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: sync-openapi
on:
schedule:
- cron: '17 4 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: sync-openapi
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Download schema and regenerate SDK
run: pnpm generate
- name: Verify generated package
run: pnpm lint && pnpm typecheck && pnpm test
- name: Create or update sync pull request
uses: peter-evans/create-pull-request@v7
with:
branch: codex/openapi-sync
delete-branch: true
commit-message: 'feat(api): sync Nodesty OpenAPI schema'
title: 'feat(api): sync Nodesty OpenAPI schema'
body: |
Automated SDK regeneration from https://nodesty.com/_openapi.json.
Review the generated request and response type changes before merging.