We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce563b commit c8153caCopy full SHA for c8153ca
.github/workflows/generate-page-docs.yml
@@ -21,12 +21,6 @@ jobs:
21
run: |
22
docker-compose up -d
23
24
- - name: Wait run backend
25
- run: |
26
- while $(curl http://0.0.0.0:8000); do
27
- sleep 1
28
- done
29
-
30
- name: Create docs directory if it doesn't exist
31
32
if [ ! -d "docs" ]; then
@@ -35,7 +29,9 @@ jobs:
35
36
- name: Generate page docs
37
38
- curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json
+ until $(curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json); do
33
+ sleep 1
34
+ done
39
curl -o docs/swagger.html --silent --fail http://0.0.0.0:8000/api/docs
40
sed 's:/api/openapi.json:openapi.json:g' docs/swagger.html > docs/index.html
41
0 commit comments