We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b41df commit 3461936Copy full SHA for 3461936
1 file changed
.github/workflows/deploy-preview.yml
@@ -91,15 +91,15 @@ jobs:
91
}
92
93
// https://github.com/orgs/community/discussions/24709
94
- const workflowRun = await github.rest.actions.listWorkflowRuns({
+ const workflowRun = (await github.rest.actions.listWorkflowRuns({
95
owner: context.repo.owner,
96
repo: context.repo.repo,
97
workflow_id: 'CI.yml',
98
branch: pr.head.ref,
99
event: 'pull_request',
100
status: 'success',
101
per_page: 1,
102
- })[0];
+ }))[0];
103
104
if (!workflowRun) {
105
console.log('No matching workflow run found from branch ', pr.head.ref);
0 commit comments