Skip to content

Commit

Permalink
Updated workflow to run the ./manage.py spectacular --color --file sc…
Browse files Browse the repository at this point in the history
…hema.yml command in the mathesar_service_dev container.
  • Loading branch information
varshadr committed Nov 2, 2023
1 parent 096eb94 commit bea6a12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/update-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ jobs:
run: docker compose -f docker-compose.yml -f docker-compose.dev.yml up dev-service

- name: Generate API documentation
uses: addnab/docker-run-action@v3
with:
image: mathesar/mathesar-dev:latest
run: ./manage.py spectacular --color --file schema.yml
shell: python
run: docker exec -it mathesar_service_dev ./manage.py spectacular --color --file schema.yml

- name: Check if schema file has changed
run: git diff --quiet schema.yml || exit 0
Expand Down

0 comments on commit bea6a12

Please sign in to comment.