Skip to content

Bump fastapi from 0.68.1 to 0.109.1 #46

Bump fastapi from 0.68.1 to 0.109.1

Bump fastapi from 0.68.1 to 0.109.1 #46

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