Skip to content

Commit

Permalink
Fix workflow name
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekMichali committed Sep 16, 2024
1 parent e6c8e0a commit 0b4604b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/wait_for_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
echo "Sleeping for 3 minutes to wait for the image build before checking the status"
sleep 180
while true; do
WORKFLOW_RUN=$(gh run list --repo $REPOSITORY --json name,status,conclusion,createdAt,headSha --jq '[.[] | select(.name == "pull-build-and-test-images" and .headSha == "'"$HEAD_SHA"'")] | sort_by(.createdAt) | last | {name: .name, status: .status, conclusion: .conclusion, created_at: .createdAt}')
WORKFLOW_RUN=$(gh run list --repo $REPOSITORY --json name,status,conclusion,createdAt,headSha --jq '[.[] | select(.name == "pull-build-images" and .headSha == "'"$HEAD_SHA"'")] | sort_by(.createdAt) | last | {name: .name, status: .status, conclusion: .conclusion, created_at: .createdAt}')
CONCLUSION=$(echo $WORKFLOW_RUN | jq -r '.conclusion')
STATUS=$(echo $WORKFLOW_RUN | jq -r '.status')
echo "Workflow run status: $STATUS, conclusion: $CONCLUSION"
Expand Down

0 comments on commit 0b4604b

Please sign in to comment.