Skip to content

Merge pull request #27 from David-Lor/develop #47

Merge pull request #27 from David-Lor/develop

Merge pull request #27 from David-Lor/develop #47

Workflow file for this run

name: Export OpenAPI schema
on:
- push
- workflow_dispatch
jobs:
export_openapi:
name: Export OpenAPI schema & commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: "3.8"
architecture: "x64"
- name: Setup requirements
run: "pip install -r requirements.txt && pip install pyyaml==5.4.1"
- name: Export schema to JSON and YAML files
run: "python tools/export-openapi.py docs/openapi.json docs/openapi.yaml"
- name: Commit & Push exported schemas
# https://github.com/marketplace/actions/add-commit
uses: EndBug/add-and-commit@v7
with:
add: "docs/openapi.*"
message: "Update OpenAPI"
pull_strategy: "NO-PULL"
push: true