Skip to content

Commit 58a45c2

Browse files
committed
Make the release fail silently when release conditions are not met
1 parent 5c328bc commit 58a45c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tools/scripts/ReleaseAutomation/run_release_preparation.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ def PrepareNetcodePackageForRelease():
1818

1919
print("\nStep 1: Verifying release conditions...")
2020
verifyReleaseConditions(config)
21-
21+
except Exception as e:
22+
print("\n--- Release conditions were not met ---", file=sys.stderr)
23+
print(f"Reason: {e}", file=sys.stderr)
24+
sys.exit(0) # In this case we want the job not to fail because this will be an intended behavior
25+
26+
try:
2227
print("\nStep 2: Creating release branch...")
2328
create_branch_execute_commands_and_push(config)
2429

0 commit comments

Comments
 (0)