diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 51f1b586..c00ff994 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -62,9 +62,9 @@ jobs: if: always() id: breaking continue-on-error: true - run: swagger diff --break ./swaggerui/html/swagger.json swagger.json > /tmp/swagger_breaking_changes.txt + run: swagger diff --break <(git show master:swaggerui/html/swagger.json) swagger.json > /tmp/swagger_breaking_changes.txt - name: Add comment - if: always() # failure() && steps.breaking.outcome == 'failure' + if: failure() && steps.breaking.outcome == 'failure' uses: mshick/add-pr-comment@v2 with: message-id: breaking-comment