diff --git a/tasks/release.py b/tasks/release.py index 9d2ce03afe866..cabf0568e9d20 100644 --- a/tasks/release.py +++ b/tasks/release.py @@ -449,9 +449,12 @@ def create_rc(ctx, major_versions="6,7", patch_version=False, upstream="origin", # Step 4 - If slack workflow webhook is provided, send a slack message if slack_webhook: print(color_message("Sending slack notification", "bold")) - ctx.run( - f"curl -X POST -H 'Content-Type: application/json' --data '{{\"pr_url\":\"{pr_url}\"}}' {slack_webhook}" - ) + payload = { + "pr_url": pr_url, + "version": str(new_highest_version), + } + + ctx.run(f"curl -X POST -H 'Content-Type: application/json' --data '{json.dumps(payload)}' {slack_webhook}") @task