From 3d00fb76fa14f0f442dafd7280aa567e3430c4de Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 6 Nov 2024 16:23:41 +0100 Subject: [PATCH] perf(scripts/diff-features): fetch only specific workflow run --- scripts/diff-features.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/diff-features.ts b/scripts/diff-features.ts index bfa6bb9f9b8fb0..39026998ee6400 100644 --- a/scripts/diff-features.ts +++ b/scripts/diff-features.ts @@ -128,7 +128,7 @@ const getEnumerationFromGithub = (ref: string): string[] => { encoding: 'utf-8', }).trim(); const workflowRun = execSync( - `gh api /repos/:owner/:repo/actions/workflows/${ENUMERATE_WORKFLOW}/runs?per_page=100 --jq '[.workflow_runs[] | select(.head_sha=="${hash}") | .id] | first'`, + `gh api /repos/:owner/:repo/actions/workflows/${ENUMERATE_WORKFLOW}/runs\\?head_sha=${hash}\\&per_page=1 --jq '[.workflow_runs[] | select(.head_sha=="${hash}") | .id] | first'`, { encoding: 'utf-8', },