mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix release helper not considering workflow status (#6320)
This commit is contained in:
parent
afabc4769d
commit
76c2c75f2c
@ -753,7 +753,15 @@ def run_prepare_release_workflow(release_type: ReleaseType, version: str) -> Non
|
|||||||
break
|
break
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
subprocess.check_call(("gh", "run", "watch", str(run_id)))
|
try:
|
||||||
|
subprocess.check_call(("gh", "run", "watch", "--exit-status", str(run_id)))
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
set_release_stage(ReleaseStage.CHANGELOG_REVIEWED)
|
||||||
|
raise click.ClickException(
|
||||||
|
"Github Actions workflow failed, run this command again"
|
||||||
|
" once you're ready to try running the 'Prepare Release' workflow again."
|
||||||
|
)
|
||||||
|
|
||||||
rich.print("The automated pull requests have been created.\n")
|
rich.print("The automated pull requests have been created.\n")
|
||||||
set_release_stage(ReleaseStage.PREPARE_RELEASE_RAN)
|
set_release_stage(ReleaseStage.PREPARE_RELEASE_RAN)
|
||||||
rich.print(Markdown("# Step 6: Merge the automatically created PRs"))
|
rich.print(Markdown("# Step 6: Merge the automatically created PRs"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user