From 0b4604b7e6f81c30f73c92c51b1743ef429ae595 Mon Sep 17 00:00:00 2001 From: Marek Michali Date: Mon, 16 Sep 2024 13:22:13 +0200 Subject: [PATCH] Fix workflow name --- scripts/wait_for_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wait_for_images.sh b/scripts/wait_for_images.sh index 944ecba700..fd954ccf27 100755 --- a/scripts/wait_for_images.sh +++ b/scripts/wait_for_images.sh @@ -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"