Skip to content

chore(deps): bump the actions group with 2 updates #13

chore(deps): bump the actions group with 2 updates

chore(deps): bump the actions group with 2 updates #13

name: OpenAPI Version Check
on:
pull_request:
paths:
- public/openapi.json
- CHANGELOG.md
- scripts/check-openapi-version.mjs
- .github/workflows/openapi-version-check.yml
permissions:
contents: read
jobs:
openapi-version:
name: OpenAPI version bump
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '22'
- name: Load base OpenAPI spec
run: |
git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
git show "origin/${{ github.base_ref }}:public/openapi.json" > /tmp/openapi.base.json || echo '{}' > /tmp/openapi.base.json
- name: Check OpenAPI version policy
run: node scripts/check-openapi-version.mjs /tmp/openapi.base.json public/openapi.json