From eb82d7a08baacc1981e64683debe085287602dad Mon Sep 17 00:00:00 2001 From: Daniel Rozenberg Date: Wed, 5 Jul 2023 13:46:26 -0400 Subject: [PATCH] Don't throw an error when no promotion is required (#858) --- scripts/promote-job.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/promote-job.ts b/scripts/promote-job.ts index 253b1f01..c68660ab 100644 --- a/scripts/promote-job.ts +++ b/scripts/promote-job.ts @@ -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); } } }