run openapi-diff when spec updated #2
Workflow file for this run
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
on: [pull_request] | |
name: validate-schema-changes | |
jobs: | |
detect-breaking-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out HEAD rev | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
path: head | |
- name: Check out BASE rev | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.base_ref }} | |
path: base | |
- name: Run OpenAPI Diff (from HEAD rev) | |
uses: docker://openapitools/openapi-diff:latest | |
with: | |
args: --markdown beta-diff.md base/fern/apis/beta/openapi-beta.yaml head/fern/apis/beta/openapi-beta.yaml |