Skip to content

Commit c358f6e

Browse files
spboyerCopilot
andauthored
Update src/commands/triggerWorkflowRun.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a08153a commit c358f6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/triggerWorkflowRun.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ export function registerTriggerWorkflowRun(context: vscode.ExtensionContext, sto
177177
async () => {
178178
log("Starting loop to check for new workflow run...");
179179
for (let i = 0; i < 20; i++) {
180-
await new Promise(resolve => setTimeout(resolve, 1000));
180+
if (i > 0) {
181+
await new Promise(resolve => setTimeout(resolve, 1000));
182+
}
181183
try {
182184
log(`Checking for new run (attempt ${i + 1}/20)...`);
183185
const result = await gitHubRepoContext.client.actions.listWorkflowRuns({

0 commit comments

Comments
 (0)