Skip to content

Commit badb75e

Browse files
fix: update pr-comment workflow to v0.0.37 with git revision syntax
Switch from raw GitHub URL to git ref syntax (origin/base:file and HEAD:file), add git fetch step, bump action to v0.0.37, and use secrets.OASDIFF_TOKEN per the current docs at https://www.oasdiff.com/docs/github-action Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 56b25ce commit badb75e

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)