Merge pull request #602 from eclipse-tractusx/chore/update-docs-for-i… #51
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
name: Analyze API with Spectral | |
on: | |
workflow_dispatch: # Trigger manually | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/src/api/**' | |
- '.config/spectral/**' | |
jobs: | |
build: | |
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/src/api/*.yaml' | |
spectral_ruleset: '.config/spectral/restCompleteSet.yml' |