From e8451e0036f4dd23e2880a6954770c736d38ef6a Mon Sep 17 00:00:00 2001 From: "Kandasamy, Divya" Date: Mon, 28 Oct 2024 19:17:07 -0400 Subject: [PATCH] Update check-pr.yml --- .github/workflows/check-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index f46a3a40..ef439619 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -113,8 +113,8 @@ jobs: # Fetch the workflow ID once response=$(curl -s -H "Authorization: token $TOKEN" \ - "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/actions/workflows" | \ - jq --arg WORKFLOW_NAME "$WORKFLOW_NAME" \ + "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/actions/workflows" | jq \ + --arg WORKFLOW_NAME "$WORKFLOW_NAME" \ '.workflows[] | select(.name == $WORKFLOW_NAME)') workflow_id=$(echo $response | jq -r '.id')