Skip to content

Commit 5df2f57

Browse files
committed
adjusting workflow.
1 parent 682ec55 commit 5df2f57

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/workflows/rdme-openapi.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,11 @@ jobs:
1919
with:
2020
python-version: "3.11"
2121

22-
- name: install pipenv
23-
run: |
24-
pip install pipenv
22+
- name: build schema
23+
run: sh ./scripts/generate_openapi_spec.sh
2524

26-
- name: install dependencies
27-
run: |
28-
pipenv install
2925

30-
- name: build oas file
31-
run: |
32-
pipenv run python manage.py spectacular --file openapi-schema.yml
33-
34-
- name: Run `openapi` command for v1🚀
26+
- name: Run `openapi` command 🚀
3527
uses: readmeio/rdme@v8
3628
with:
3729
rdme: openapi openapi-schema.yml --key=${{ secrets.README_API_KEY }} --id=6715b7fb7960ee004eb4a8cf

scripts/generate_openapi_spec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Version takes in a string that will be shown in the API docs.
44
pip install pipenv
55
pipenv install
6-
pipenv run python manage.py spectacular --color --file schema.yml --validate --fail-on-warn
6+
pipenv run python manage.py spectacular --color --file openapi-schema.yml --validate --fail-on-warn

0 commit comments

Comments
 (0)