Update .yml files

This commit is contained in:
Keannu Christian Bernasol 2025-03-27 04:37:52 +08:00
parent dac6796cc6
commit 2a2b47c6e4
2 changed files with 16 additions and 4 deletions

View file

@ -24,7 +24,10 @@ steps:
settings:
url:
from_secret: NTFY_URL
title: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
title: >
{{#success build.status}}
{CI_REPO_NAME} build {{build.number}} {{build.status}}
{{/success}}
priority: urgent
click: https://blog.06222001.xyz
icon: https://github.com/woodpecker-ci/woodpecker/blob/main/docs/static/img/logo.svg
@ -38,7 +41,10 @@ steps:
from_secret: DISCORD_WEBHOOK_ID
webhook_token:
from_secret: DISCORD_WEBHOOK_TOKEN
message: "${CI_REPO_NAME} build ${CI_PREV_PIPELINE_STATUS}"
message: >
{{#success build.status}}
{CI_REPO_NAME} build {{build.number}} {{build.status}}
{{/success}}
depends_on: build
when:

View file

@ -16,7 +16,10 @@ steps:
settings:
url:
from_secret: NTFY_URL
title: "${CI_REPO_NAME} deploy ${CI_PREV_PIPELINE_STATUS}"
title: >
{{#success build.status}}
{CI_REPO_NAME} deploy {{build.number}} {{build.status}}
{{/success}}
priority: urgent
click: https://blog.06222001.xyz
icon: https://github.com/woodpecker-ci/woodpecker/blob/main/docs/static/img/logo.svg
@ -30,7 +33,10 @@ steps:
from_secret: DISCORD_WEBHOOK_ID
webhook_token:
from_secret: DISCORD_WEBHOOK_TOKEN
message: "${CI_REPO_NAME} deploy ${CI_PREV_PIPELINE_STATUS}"
message: >
{{#success build.status}}
{CI_REPO_NAME} deploy {{build.number}} {{build.status}}
{{/success}}
depends_on: deploy
when: