Skip to content

Commit e699680

Browse files
bdbyrnebc-devrev
andauthored
chore: Update OpenAPI specs (#116)
Co-authored-by: Ben Colborn <ben.colborn@devrev.ai>
1 parent 9846cda commit e699680

File tree

3 files changed

+967
-409
lines changed

3 files changed

+967
-409
lines changed

.github/workflows/oasdiff.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- fern/apis/public/openapi-public.yaml
5+
- fern/apis/beta/openapi-beta.yaml
6+
7+
name: generate-changelog
8+
jobs:
9+
get-diff:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out HEAD rev
13+
uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.head_ref }}
16+
path: head
17+
- name: Check out BASE rev
18+
uses: actions/checkout@v2
19+
with:
20+
ref: ${{ github.base_ref }}
21+
path: base
22+
- name: Create dir
23+
run: |
24+
mkdir changelog
25+
- name: Running public OpenAPI Spec diff action
26+
uses: oasdiff/oasdiff-action/diff@main
27+
with:
28+
base: 'base/fern/apis/public/openapi-public.yaml'
29+
revision: 'head/fern/apis/public/openapi-public.yaml'
30+
format: text
31+
output-to-file: 'changelog/public-diff.md'
32+
- name: Running beta OpenAPI Spec diff action
33+
uses: oasdiff/oasdiff-action/diff@main
34+
with:
35+
base: 'base/fern/apis/beta/openapi-beta.yaml'
36+
revision: 'head/fern/apis/beta/openapi-beta.yaml'
37+
format: text
38+
output-to-file: 'changelog/beta-diff.md'
39+
- name: Archive changelogs
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: changelog
43+
path: changelog/**

0 commit comments

Comments
 (0)