Skip to content

Commit a1c3ef1

Browse files
committed
Fix verification spinners
1 parent 0ec3327 commit a1c3ef1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/promote_release.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class ReleasePromotion {
4747
cli.warn(`Aborting release promotion for version ${version}`);
4848
return;
4949
}
50+
} else {
51+
cli.stopSpinner('Jenkins CI is passing');
5052
}
51-
cli.stopSpinner('Jenkins CI is passing');
5253

5354
cli.startSpinner('Verifying GitHub CI status');
5455
if (!githubCIReady) {
@@ -59,8 +60,9 @@ class ReleasePromotion {
5960
cli.warn(`Aborting release promotion for version ${version}`);
6061
return;
6162
}
63+
} else {
64+
cli.stopSpinner('GitHub CI is passing');
6265
}
63-
cli.stopSpinner('GitHub CI is passing');
6466

6567
cli.startSpinner('Verifying PR approval status');
6668
if (!isApproved) {
@@ -72,8 +74,9 @@ class ReleasePromotion {
7274
cli.warn(`Aborting release promotion for version ${version}`);
7375
return;
7476
}
77+
} else {
78+
cli.stopSpinner(`#${prid} has necessary approvals`);
7579
}
76-
cli.stopSpinner(`#${prid} has necessary approvals`);
7780

7881
// Create and sign the release tag.
7982
const shouldTagAndSignRelease = await cli.prompt(

0 commit comments

Comments
 (0)