Skip to content

Commit

Permalink
openapi diff (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Jozef Volak <[email protected]>
  • Loading branch information
Jozefiel and Jozef Volak authored Jan 26, 2024
1 parent 9b13fcb commit 9a77d73
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/openapi_diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: pr-check

on:
pull_request:
branches: [ swagger_docs ]

workflow_dispatch:

jobs:
diff:
name: OpenAPI diff
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out head branch
uses: actions/checkout@v3
with:
path: head
- name: Check out swagger_docs branch
uses: actions/checkout@v3
with:
ref: swagger_docs
path: base
- name: Run OpenAPI Diff (from HEAD revision)
uses: docker://openapitools/openapi-diff:latest
with:
args: --json diff.json base/latest.json head/latest.json
- name: print diff
run: cat diff.json

0 comments on commit 9a77d73

Please sign in to comment.