Skip to content

Commit

Permalink
Don't throw an error when no promotion is required (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg authored Jul 5, 2023
1 parent 9851cc4 commit eb82d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/promote-job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ export function ensureForwardPromote(
): void {
for (const rtv of currentRtvs) {
if (rtv.slice(-13) >= newVersion) {
core.notice('Skipping job');
throw new Error(
'The scheduled promotion is older than current versions. This is most likely due to a lack of new commits on the nightly branch. No action is needed.'
core.notice(
'The scheduled promotion is older than current versions. No action is needed.'
);
process.exit(0);
}
}
}

0 comments on commit eb82d7a

Please sign in to comment.