Fix API URL in Notifier
This commit is contained in:
parent
c00ea15488
commit
02b30d406b
@ -68,7 +68,7 @@ try:
|
|||||||
if not success:
|
if not success:
|
||||||
with APISession(environ["PLUGIN_WOODPECKER_URL"].rstrip("/")) as client:
|
with APISession(environ["PLUGIN_WOODPECKER_URL"].rstrip("/")) as client:
|
||||||
client.headers.setdefault("Authorization", f"Bearer {environ["PLUGIN_WOODPECKER_TOKEN"]}")
|
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()
|
pipeline_info = client.get(pipeline_url).json()
|
||||||
for workflow in pipeline_info["workflows"]:
|
for workflow in pipeline_info["workflows"]:
|
||||||
if workflow["name"] != environ["CI_WORKFLOW_NAME"]:
|
if workflow["name"] != environ["CI_WORKFLOW_NAME"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user