Skip to content

Commit 7698eb2

Browse files
committed
use redocly + github-action
1 parent 2d84fec commit 7698eb2

4 files changed

Lines changed: 4807 additions & 4465 deletions

File tree

.github/workflows/openapi.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: API linting
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v6
13+
with:
14+
ref: ${{ github.head_ref }}
15+
16+
- name: Set up node
17+
uses: actions/setup-node@v6
18+
- name: Install Redocly CLI
19+
run: npm install -g @redocly/cli@latest
20+
- name: Bundle OpenAPI
21+
run: |
22+
cd openapi
23+
./update.sh
24+
- name: Run linting
25+
run: redocly lint openapi/ogcapi-processes.bundle.json --format=github-actions
26+
27+
- name: Commit updated OpenAPI bundle
28+
uses: stefanzweifel/git-auto-commit-action@v7
29+
with:
30+
commit_message: Auto-update OpenAPI bundle
31+
file_pattern: 'openapi/ogcapi-processes.bundle.json'
32+

openapi.yaml

Lines changed: 0 additions & 204 deletions
This file was deleted.

0 commit comments

Comments
 (0)