Fix typo "build > built" (#3051) #1
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
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2022 The HuggingFace Authors. | |
name: Check openapi specification | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "docs/source/openapi.json" | |
- ".github/workflows/openapi-spec.yml" | |
- ".spectral.yml" | |
pull_request: | |
paths: | |
- "docs/source/openapi.json" | |
- ".github/workflows/openapi-spec.yml" | |
- ".spectral.yml" | |
jobs: | |
check-openapi-spec-against-spectral: | |
name: Run Spectral | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repository | |
- uses: actions/checkout@v4 | |
# Run Spectral | |
- uses: stoplightio/spectral-action@latest | |
with: | |
file_glob: 'docs/source/openapi.json' | |
spectral_ruleset: '.spectral.yml' |