Skip to content

Set default instanceType values. Also add to super classes #9

Set default instanceType values. Also add to super classes

Set default instanceType values. Also add to super classes #9

Workflow file for this run

name: Generate API
on:
workflow_dispatch:
push:
branches-ignore:
- "main"
jobs:
Generate_API:
name: Generate API JSON and YML Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- run: |
pip install -r requirements.txt
python openapi.py main:app --out docs/USDM_API.json
python openapi.py main:app --out docs/USDM_API.yaml
git config user.name github-actions
git config user.email [email protected]
git add .
git diff-index --quiet HEAD || git commit -m "Generate API files"
git push
# Running locally:
# gh act workflow_dispatch -P ubuntu-latest=catthehacker/ubuntu:act-latest --secret-file my.secrets