characteristics and studytitle #6
Workflow file for this run
This file contains 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 | |
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 |