Skip to content

Commit 02c1336

Browse files
update wf
1 parent 0e32112 commit 02c1336

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/pr-comment.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
name: oasdiff PR comment
1+
name: API Breaking Change Check
22

33
on:
44
pull_request:
5-
6-
permissions:
7-
contents: read
8-
pull-requests: write
9-
statuses: write
5+
paths:
6+
- 'simple.yaml'
107

118
jobs:
129
pr-comment:
1310
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
statuses: write
1414
steps:
15-
- name: Check out code
16-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
16+
17+
- run: git fetch --depth=1 origin ${{ github.base_ref }}
1718

18-
- name: Post oasdiff PR comment
19-
uses: oasdiff/oasdiff-action/pr-comment@v0.0.34
20-
with:
21-
base: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/simple.yaml
22-
revision: simple.yaml
23-
oasdiff-token: 0634345d-02fb-43df-b56a-68fc22253621
19+
- uses: oasdiff/oasdiff-action/pr-comment@v0.0.37
20+
with:
21+
base: 'origin/${{ github.base_ref }}:simple.yaml'
22+
revision: 'HEAD:simple.yaml'

0 commit comments

Comments
 (0)