From cefc47d14d21b71d26fcb2f96992784e647ede6e Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Mon, 9 Jun 2025 14:15:48 +0700 Subject: [PATCH] update step woodpecker --- .woodpecker.yml | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0029300..237cce8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -77,7 +77,7 @@ steps: - master depends_on: [setup, build-src, build-image] - - name: telegram failed notify + - name: telegram notify on pipeline completion image: appleboy/drone-telegram settings: token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM @@ -89,44 +89,18 @@ steps: *Repo Link:* ${CI_REPO_URL} *Branch:* ${CI_COMMIT_BRANCH} - *Build Status:* *Failed* + *Build Status:* *{{ pipeline.status == 'success' ? 'Success' : 'Failed' }}* *Build Link:* ${CI_PIPELINE_URL} *Commit ID:* `${CI_COMMIT_SHA:0:8}` *Commit By:* {{commit.author}} *Commit Link:* {{commit.link}} *Commit Msg:* {{commit.message}} - 🙈 build failed. Fix me please, before client is aware. - when: - status: - - failure - - cancel - branch: - - master - - - name: telegram success notify - image: appleboy/drone-telegram - settings: - token: 7616010754:AAGXMf8x-roKozdT0j-bOZ1y9dmbulbKPbM - to: -4765409490 - message: | - 🚀 *Woodpecker CI Build Finish* 🚀 - - *Repo:* ${CI_REPO_OWNER}/${CI_REPO_NAME} - *Repo Link:* ${CI_REPO_URL} - *Branch:* ${CI_COMMIT_BRANCH} - - *Build Status:* *Success* - *Build Link:* ${CI_PIPELINE_URL} - - *Commit ID:* `${CI_COMMIT_SHA:0:8}` - *Commit By:* {{commit.author}} - *Commit Link:* {{commit.link}} - *Commit Msg:* {{commit.message}} - 😎 build succeeded. Good job {{commit.author}} + {{ pipeline.status == 'success' ? '😎 build succeeded. Good job ' + commit.author : '🙈 build failed. Fix me please, before client is aware.' }} when: status: - success + - failure + - cancelled branch: - master - depends_on: [setup, build-src, build-image, deploy]