Skip to content

Commit

Permalink
always check breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Dec 11, 2023
1 parent 092e84c commit 5b5fb88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:
name: Test Swagger
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v4
with:
go-version: '1.21'
Expand All @@ -61,9 +63,10 @@ jobs:
- name: Check breaking changes
if: always()
id: breaking
run: swagger diff --break <(git show HEAD~1:swaggerui/html/swagger.json --quiet) ./swaggerui/html/swagger.json > swagger_breaking_changes.txt
run: swagger diff --break <(git show HEAD~1:swaggerui/html/swagger.json --quiet) ./swaggerui/html/swagger.json > swagger_breaking_changes.txt
- name: Add comment
if: always()
needs: [breaking]
uses: mshick/add-pr-comment@v2
with:
message-id: breaking-comment
Expand Down

0 comments on commit 5b5fb88

Please sign in to comment.