Skip to content

Commit 3e5bf85

Browse files
fix: use git ref syntax now that oasdiff resolves $refs via git show
1 parent a5194e3 commit 3e5bf85

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/multi-file-demo.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,12 @@ jobs:
1212
pr-comment:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Check out base branch
16-
uses: actions/checkout@v4
17-
with:
18-
ref: ${{ github.base_ref }}
19-
path: base
15+
- uses: actions/checkout@v4
2016

21-
- name: Check out PR branch
22-
uses: actions/checkout@v4
23-
with:
24-
path: revision
17+
- run: git fetch --depth=1 origin ${{ github.base_ref }}
2518

2619
- uses: oasdiff/oasdiff-action/pr-comment@v0.0.34
2720
with:
28-
base: base/multi-file/openapi.yaml
29-
revision: revision/multi-file/openapi.yaml
21+
base: 'origin/${{ github.base_ref }}:multi-file/openapi.yaml'
22+
revision: 'HEAD:multi-file/openapi.yaml'
3023
oasdiff-token: 0634345d-02fb-43df-b56a-68fc22253621

0 commit comments

Comments
 (0)