From 956e6620e17b03ec7f7b87b2322041c13ab71ae5 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 27 Aug 2024 15:15:49 -0400 Subject: [PATCH] Bring back `-q` for `gh api` --- .github/workflows/test-call-workflow-and-wait.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-call-workflow-and-wait.yml b/.github/workflows/test-call-workflow-and-wait.yml index 2317e76..5b92b54 100644 --- a/.github/workflows/test-call-workflow-and-wait.yml +++ b/.github/workflows/test-call-workflow-and-wait.yml @@ -26,9 +26,9 @@ jobs: sleep 60 - currentWorkflowRunId=$(gh api repos/$GITHUB_REPOSITORY/actions/workflows/$workflowFile/runs?event=workflow_dispatch&created=">=$dispatchDate" | jq -r '.workflow_runs[0].id') + currentWorkflowRunId=$(gh api repos/$GITHUB_REPOSITORY/actions/workflows/$workflowFile/runs?event=workflow_dispatch&created=">=$dispatchDate" -q '.workflow_runs[0].id') - echo Other workflow current run: $(gh api repos/$GITHUB_REPOSITORY/actions/runs/$currentWorkflowRunId | jq -r '.html_url') + echo Other workflow current run: $(gh api repos/$GITHUB_REPOSITORY/actions/runs/$currentWorkflowRunId -q '.html_url') while true; do run_data=$(gh api repos/$GITHUB_REPOSITORY/actions/runs/$currentWorkflowRunId)