Skip to content

Add appliesToId to DocumentContentReference (DDF-RA #498) #135

Add appliesToId to DocumentContentReference (DDF-RA #498)

Add appliesToId to DocumentContentReference (DDF-RA #498) #135

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
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
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