Skip to content

(prod) Release OpenAPI Spec 🚀. See https://github.com/mongodb/… #59

(prod) Release OpenAPI Spec 🚀. See https://github.com/mongodb/…

(prod) Release OpenAPI Spec 🚀. See https://github.com/mongodb/… #59

Workflow file for this run

name: Spectral Lint Commited OpenAPI Spec
# Trigger the workflow on pull requests and pushes to the main branch
on:
pull_request:
paths:
- 'tools/spectral/**'
- 'openapi/**.yaml'
- '.spectral.yaml'
push:
branches:
- main
paths:
- 'tools/spectral/**'
- 'openapi/**.yaml'
- '.spectral.yaml'
jobs:
spectral-lint:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
sparse-checkout: |
openapi/
tools/spectral
- name: Spectral action
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83
with:
# Path to the OpenAPI spec files and openapi/v2.yaml
file_glob: openapi/v2.yaml
spectral_ruleset: tools/spectral/.spectral.yaml #If updated, need to update in MMS too.