Skip to content

Commit c8153ca

Browse files
committed
fix
1 parent bce563b commit c8153ca

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/generate-page-docs.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ jobs:
2121
run: |
2222
docker-compose up -d
2323
24-
- name: Wait run backend
25-
run: |
26-
while $(curl http://0.0.0.0:8000); do
27-
sleep 1
28-
done
29-
3024
- name: Create docs directory if it doesn't exist
3125
run: |
3226
if [ ! -d "docs" ]; then
@@ -35,7 +29,9 @@ jobs:
3529
3630
- name: Generate page docs
3731
run: |
38-
curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json
32+
until $(curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json); do
33+
sleep 1
34+
done
3935
curl -o docs/swagger.html --silent --fail http://0.0.0.0:8000/api/docs
4036
sed 's:/api/openapi.json:openapi.json:g' docs/swagger.html > docs/index.html
4137

0 commit comments

Comments
 (0)