From 0f5bd7d61a6ce65fbde744edc495982cc3756cbb Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Sat, 11 Apr 2026 15:37:20 +0530 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20Teams=20notification=20=E2=80=94=20?= =?UTF-8?q?use=20Adaptive=20Card=20with=20curl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index cd62cb6..2d286fe 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,4 @@ # Woodpecker CI pipeline for Helix Engage Server (sidecar) -# -# Runs unit tests. Teams notification on completion. when: - event: [push, manual] @@ -13,11 +11,14 @@ steps: - npm test -- --ci --forceExit notify-teams: - image: mobydeck/ci-teams-notification - settings: - webhook_url: + image: curlimages/curl + environment: + TEAMS_WEBHOOK: from_secret: teams_webhook - facts: project,message - buttons: pipeline + commands: + - > + curl -s -X POST "$TEAMS_WEBHOOK" + -H "Content-Type:application/json" + -d '{"type":"message","attachments":[{"contentType":"application/vnd.microsoft.card.adaptive","content":{"type":"AdaptiveCard","version":"1.4","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"Helix Engage Server — Build #'"$CI_PIPELINE_NUMBER"'"},{"type":"TextBlock","text":"Branch: '"$CI_COMMIT_BRANCH"'","wrap":true},{"type":"TextBlock","text":"'"$(echo $CI_COMMIT_MESSAGE | head -c 80)"'","wrap":true}],"actions":[{"type":"Action.OpenUrl","title":"View Pipeline","url":"https://operations.healix360.net/repos/2/pipeline/'"$CI_PIPELINE_NUMBER"'"}]}}]}' when: - status: [success, failure]