Skip to content

Commit

Permalink
[MAINT] Make github workflow format openapi.json (#879)
Browse files Browse the repository at this point in the history
Co-authored-by: Tania Allard <[email protected]>
  • Loading branch information
peytondmurray and trallard authored Sep 17, 2024
1 parent 67f6ae7 commit 6da65e6
Show file tree
Hide file tree
Showing 2 changed files with 4,239 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/generate_api_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
run:
shell: bash -el {0}
steps:
- name: "Install jq 📦"
run: |
sudo apt update
sudo apt install -y jq
- name: "Checkout repository 🛎️"
uses: actions/checkout@v4
with:
Expand All @@ -33,7 +38,10 @@ jobs:
run: python -m pip install conda-store-server/.

- name: "Run openapi.json generation script"
run: python docusaurus-docs/scripts/generate_openapi_json.py
run: |
python docusaurus-docs/scripts/generate_openapi_json.py
jq . --sort-keys docusaurus-docs/static/openapi.json > docusaurus-docs/static/openapi.json.formatted
mv docusaurus-docs/static/openapi.json.formatted docusaurus-docs/static/openapi.json
- name: "Commit changes"
uses: EndBug/add-and-commit@v9
Expand Down
Loading

0 comments on commit 6da65e6

Please sign in to comment.