ci(pipeline): comment on failure (pr)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2023-01-01 19:58:35 +01:00
parent 68a713bda4
commit ee6f4a5966
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -63,10 +63,14 @@ pipeline:
comment_on_failure:
image: tsakidev/giteacomment:latest
secrets: [gitnet_token]
environment:
- GITEA_TOKEN=${GITNET_TOKEN}
- GITEA_BASE_URL=https://gitnet.fr
- DRONE_REPO_NAMESPACE=${CI_REPO_NAME}
- DRONE_REPO_NAME=${CI_REPO}
- DRONE_PULL_REQUEST=${CI_COMMIT_PULL_REQUEST}
settings:
gitea_token:
from_secret: gitnet_token
gitea_base_url: https://gitnet.fr
comment: "Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS}"
when:
status: [failure]