From f377d965c5570bbe06c81e8e260fa720fb0362d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 18 Nov 2024 14:28:20 +0100 Subject: [PATCH] Fix extra pypi items in notification --- tag_publish/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tag_publish/cli.py b/tag_publish/cli.py index 2cb323e..60c6ff6 100644 --- a/tag_publish/cli.py +++ b/tag_publish/cli.py @@ -227,7 +227,8 @@ def _handle_pypi_publish( print(f"{'Publishing' if publish else 'Checking'} '{folder}' to pypi, skipping (dry run)") else: success &= tag_publish.publish.pip(package, version, version_type, publish, github) - published_payload.append({"type": "pypi", "folder": folder}) + if publish: + published_payload.append({"type": "pypi", "folder": folder}) return success