add slim forecast proposal/snapshot #214
Workflow file for this run
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: 'OpenAPI lint' | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 1.0.0* | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: "Redocly Lint" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: >- | |
npx --yes @redocly/cli bundle ./docs/_data/openapi-split.yaml -o ./docs/openapi.yaml && | |
npx @redocly/cli lint ./docs/openapi.yaml | |
- name: Redocly API Stats | |
id: api_stats | |
run: npx @redocly/cli stats ./docs/openapi.yaml > stats.txt 2>&1 | |
- name: Comment PR with API Stats | |
#if: ${{ github.event.pull_request }} | |
if: ${{ false }} | |
uses: thollander/[email protected] | |
with: | |
comment_tag: api-stats | |
filePath: stats.txt |