Comments pull requests with Spectral linter linter outputs using Github action
Check PR showcase.
Add or edit an existing workflow:
name: "test-action"
on:
# only works on pull requests
pull_request:
jobs:
test:
name: Lint OpenAPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: l-lin/spectral-comment-action@0.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file-glob: sample/*.yml