Skip to content

Commit

Permalink
ci: replace timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Jul 19, 2024
1 parent 0bf2ca8 commit 75321d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/invoke-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,22 @@ jobs:
while (!conclusion) {
console.log(`Checking status of workflow run with ID: ${run_id}...`);
console.log(run);
await new Promise(resolve => setTimeout(resolve, 30000));
const run = await github.rest.actions.getWorkflowRun({
owner,
repo,
run_id,
});
});
console.log(run);
console.log(`Current status of workflow run ID ${run_id}: ${run.data.status}`);
if (run.data.status === 'completed') {
conclusion = run.data.conclusion;
console.log(`Workflow run with ID ${run_id} has completed with conclusion: ${conclusion}`);
} else {
await new Promise(resolve => setTimeout(resolve, 30000));
}
}
Expand Down

0 comments on commit 75321d0

Please sign in to comment.