Skip to content

Commit

Permalink
perf(scripts/diff-features): fetch only specific workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 6, 2024
1 parent eb495de commit 3d00fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/diff-features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 3d00fb7

Please sign in to comment.