Implement QuantityRange inheritance #179
Workflow file for this run
This file contains hidden or 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: 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 github-actions@cdisc.org | |
| 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 |