Skip to content

Commit ab5d2b2

Browse files
committed
upd
1 parent dfebc6a commit ab5d2b2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,23 @@ jobs:
1919
2020
- name: Run Docker
2121
run: |
22-
docker-compose up -d
22+
docker-compose up -d --build
23+
24+
- name: Wait run backend
25+
run: |
26+
util $(curl http://0.0.0.0:8000); do
27+
sleep 1
28+
done
2329
2430
- name: Create docs directory if it doesn't exist
2531
run: |
2632
if [ ! -d "docs" ]; then
2733
mkdir -p docs
2834
fi
2935
30-
- name: Fetch page docs
36+
- name: Generate page docs
3137
run: |
32-
until $(curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json); do
33-
sleep 1
34-
done
38+
curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json
3539
curl -o docs/swagger.html --silent --fail http://0.0.0.0:8000/api/docs
3640
sed 's:/api/openapi.json:openapi.json:g' docs/swagger.html > docs/index.html
3741

0 commit comments

Comments
 (0)