Skip to content

Commit 3db01f5

Browse files
committed
Wait before checking build workflow status
1 parent 9acc406 commit 3db01f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/test-docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131

3232
- name: Wait for container images build
3333
run: |
34+
sleep 15 # Wait for the build workflow to be registered
3435
while :; do
3536
result=$(gh api repos/:owner/:repo/actions/workflows | jq -r '.workflows[] | select(.name=="Build and push containers") | .id' | xargs -I {} gh api repos/:owner/:repo/actions/workflows/{}/runs --jq '.workflow_runs | max_by(.run_number)')
3637
status=$(echo "$result" | jq -r '.status')

0 commit comments

Comments
 (0)