File tree Expand file tree Collapse file tree 3 files changed +967
-409
lines changed Expand file tree Collapse file tree 3 files changed +967
-409
lines changed Original file line number Diff line number Diff line change
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/**
You can’t perform that action at this time.
0 commit comments