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"]: