Skip to content

Commit 80f40e4

Browse files
Merge pull request #22 from oasdiff/fix/pr-comment-v0.0.37
fix: update pr-comment workflow to v0.0.37 with git revision syntax
2 parents 56b25ce + badb75e commit 80f40e4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/pr-comment.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
- name: Check out code
1616
uses: actions/checkout@v4
1717

18+
- name: Fetch base branch
19+
run: git fetch --depth=1 origin ${{ github.base_ref }}
20+
1821
- name: Post oasdiff PR comment
19-
uses: oasdiff/oasdiff-action/pr-comment@v0.0.34
22+
uses: oasdiff/oasdiff-action/pr-comment@v0.0.37
2023
with:
21-
base: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.event.pull_request.base.sha }}/multi-file/openapi.yaml
22-
revision: multi-file/openapi.yaml
23-
oasdiff-token: 0634345d-02fb-43df-b56a-68fc22253621
24+
base: 'origin/${{ github.base_ref }}:multi-file/openapi.yaml'
25+
revision: 'HEAD:multi-file/openapi.yaml'
26+
oasdiff-token: ${{ secrets.OASDIFF_TOKEN }}

0 commit comments

Comments
 (0)