Skip to content

Commit 09d64a6

Browse files
authored
Merge pull request #13955 from valentijnscholten/gha-fetch-spec-wait
github action fetch openapi spec must wait for dojo to be up
2 parents b323153 + dc4f4d3 commit 09d64a6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/fetch-oas.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
DJANGO_VERSION: ${{ env.release_version }}-alpine
3939
NGINX_VERSION: ${{ env.release_version }}-alpine
4040

41+
- name: Wait for Dojo to be ready
42+
run: |
43+
timeout 120 bash -c 'until curl -f http://localhost:8080/api/v2/oa3/schema/; do sleep 10; done'
44+
4145
- name: Download OpenAPI Specifications
4246
run: |-
4347
wget 'http://localhost:8080/api/v2/oa3/schema/?format=${{ matrix.file-type }}' -O oas.${{ matrix.file-type }} --tries=10 --retry-on-http-error=502

0 commit comments

Comments
 (0)