From 9a77d73c26e379cd91a4a7fd4f59070a73b8c245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Vol=C3=A1k?= Date: Sat, 27 Jan 2024 00:23:39 +0100 Subject: [PATCH] openapi diff (#163) Co-authored-by: Jozef Volak --- .github/workflows/openapi_diff.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/openapi_diff.yml diff --git a/.github/workflows/openapi_diff.yml b/.github/workflows/openapi_diff.yml new file mode 100644 index 0000000000..d627a55f46 --- /dev/null +++ b/.github/workflows/openapi_diff.yml @@ -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 \ No newline at end of file