update openapi schema #213
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenAPI Schema Backward Compatibility | |
on: | |
push: | |
paths: | |
- 'schemas/openapi.json' | |
pull_request: | |
paths: | |
- 'schemas/openapi.json' | |
jobs: | |
openapi-schema-backward-compatibility: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
sparse-checkout: schemas/openapi.json | |
sparse-checkout-cone-mode: false | |
- name: Copy schema file | |
run: | | |
cp schemas/openapi.json .${{ github.sha }}.openapi.json | |
git checkout ${{ github.base_ref }} | |
- uses: docker://openapitools/openapi-diff | |
with: | |
args: --fail-on-incompatible schemas/openapi.json .${{ github.sha }}.openapi.json |