From 02b30d406bfaeea949c58eddf66957b4f4cb7682 Mon Sep 17 00:00:00 2001 From: Radek Golan Date: Wed, 24 Apr 2024 14:21:24 +0200 Subject: [PATCH] Fix API URL in Notifier --- src/discord_notifier/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord_notifier/__main__.py b/src/discord_notifier/__main__.py index 4dacfda..aa62cee 100644 --- a/src/discord_notifier/__main__.py +++ b/src/discord_notifier/__main__.py @@ -68,7 +68,7 @@ try: if not success: with APISession(environ["PLUGIN_WOODPECKER_URL"].rstrip("/")) as client: client.headers.setdefault("Authorization", f"Bearer {environ["PLUGIN_WOODPECKER_TOKEN"]}") - pipeline_url = urlparse(environ["CI_PIPELINE_URL"]).path + pipeline_url = urlparse(environ["CI_PIPELINE_URL"]).path + "s" pipeline_info = client.get(pipeline_url).json() for workflow in pipeline_info["workflows"]: if workflow["name"] != environ["CI_WORKFLOW_NAME"]: