Skip to content

Commit 8d8c66b

Browse files
Update oasdiff PR comment workflow configuration
1 parent 6ea0a97 commit 8d8c66b

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/pr-comment.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
name: oasdiff PR comment
1+
name: oasdiff
22

33
on:
44
pull_request:
55

6-
permissions:
7-
contents: read
8-
pull-requests: write
9-
statuses: write
10-
116
jobs:
12-
pr-comment:
7+
oasdiff:
138
runs-on: ubuntu-latest
149
steps:
15-
- name: Check out code
16-
uses: actions/checkout@v4
10+
- uses: actions/checkout@v6
1711

18-
- name: Fetch base branch
19-
run: git fetch --depth=1 origin ${{ github.base_ref }}
12+
- run: git fetch --depth=1 origin ${{ github.base_ref }}
2013

21-
- name: Post oasdiff PR comment
22-
uses: oasdiff/oasdiff-action/pr-comment@v0.0.37
23-
with:
24-
base: 'origin/${{ github.base_ref }}:multi-file/openapi.yaml'
25-
revision: 'HEAD:multi-file/openapi.yaml'
26-
oasdiff-token: ${{ secrets.OASDIFF_TOKEN }}
14+
- uses: oasdiff/oasdiff-action/pr-comment@v0.0.40-beta.3
15+
with:
16+
base: 'origin/${{ github.base_ref }}:openapi.yaml'
17+
revision: 'HEAD:openapi.yaml'
18+
oasdiff-token: ${{ secrets.OASDIFF_TOKEN }}

0 commit comments

Comments
 (0)