Skip to content

OpenAPI Canary

OpenAPI Canary #857

---
name: OpenAPI Canary
on:
schedule:
# 2.30 UTC
- cron: '30 2 * * *'
jobs:
canary:
name: Check for changed spec files
runs-on: ubuntu-latest
container: openapitools/openapi-diff
steps:
- name: Checkout development branch
uses: actions/checkout@v3
with:
path: head
- name: Checkout master branch
uses: actions/checkout@v3
with:
ref: master
path: base
# --fail-on-incompatible is also possible
- name: Run OpenAPI Diff for external journal API
run: |
java -jar /app/openapi-diff.jar --fail-on-changed base/sormas-rest/swagger.yaml \
head/sormas-rest/swagger.yaml