Skip to content

Commit

Permalink
chore: changed until condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 7, 2024
1 parent b31b4ac commit 0e361fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ export async function isCiGreen({ octokit, logger, env }: Context, sha: string,
until(lastResult) {
if (lastResult === null) {
logger.info("Not all CI runs were complete, will retry...");
return false;
}
return lastResult;
return lastResult !== null;
},
maxTry: 100,
delay: 60000,
Expand Down

0 comments on commit 0e361fb

Please sign in to comment.