File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 10
10
- uses : actions/checkout@v4
11
11
- uses : actions/setup-python@v5
12
12
-
uses :
pre-commit/[email protected]
13
+
14
+ openapi-breaking-changes :
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ pull-requests : write
18
+ steps :
19
+ - name : Clone repo
20
+ uses : actions/checkout@v4
21
+ with :
22
+ # We need the history to find the common ancestor of the PR and the target branch from which we fetch the
23
+ # baseline OpenAPI specifications to compare against.
24
+ fetch-depth : 0
25
+ - name : Fetch baseline OpenAPI specifications
26
+ run : |
27
+ mergeBase="$(git merge-base --fork-point "origin/${{ github.base_ref }}")"
28
+ echo "mergeBase: $mergeBase"
29
+ git restore -s "$mergeBase" -W -- model-server-openapi/specifications
30
+ cp -R model-server-openapi/specifications model-server-openapi/specifications-before
31
+ git checkout model-server-openapi/specifications
32
+ - name : Run oasdiff
33
+ id : breaking
34
+ uses : oasdiff/oasdiff-action/breaking@main
35
+ with :
36
+ base : ' model-server-openapi/specifications-before/*.yaml'
37
+ revision : ' model-server-openapi/specifications/*.yaml'
38
+ composed : true
You can’t perform that action at this time.
0 commit comments