OpenAPI Definition: Updated #8
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: Build OpenAPI bundle | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'standard/openapi/**.yaml' | |
jobs: | |
build-openapi-bundle: | |
name: Generate OpenAPI bundle | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup npm | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: npm install -g @apidevtools/swagger-cli | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Generate OpenAPI bundle | |
run: | | |
cd standard/openapi | |
swagger-cli bundle -o ogcapi-coverages-1.bundled.json ogcapi-coverages-1.yaml | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Tom Kralidis | |
author_email: [email protected] | |
message: 'Updating OpenAPI bundle' | |
add: '*.json' | |
cwd: './standard/openapi/' |