Skip to content

Commit

Permalink
add new dist
Browse files Browse the repository at this point in the history
  • Loading branch information
TomChv committed Jul 30, 2020
1 parent 6a87c43 commit 767e4f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3583,18 +3583,15 @@ exports.poll = (options) => __awaiter(void 0, void 0, void 0, function* () {
log(`Retrieved ${result.data.check_runs.length} check runs named ${checkName}`);
const check = result.data.check_runs;
if (!check || !check.length) {
log(`${checkName} job does not exist. Abort waiting`);
log(`${checkName} job does not exist. Conclusion : 'not found'`);
return 'not found';
}
else {
log(`${checkName} job find`);
}
if (check.find(checkRun => checkRun.status === 'queued')) {
log(`${checkName} job is in queue`);
log(`Found a ${checkName} job in queue`);
deadline = now + timeoutSeconds * 1000;
}
if (check.find(checkRun => checkRun.status === 'in_progress')) {
log(`${checkName} job is in progress`);
log(`Found a ${checkName} job in progress`);
}
const completedCheck = result.data.check_runs.find(checkRun => checkRun.status === 'completed');
if (completedCheck) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 767e4f4

Please sign in to comment.