From 1e4fa41a977556c12bf16e7dafbed3c3af019944 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Sat, 11 Apr 2026 15:37:08 +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 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 064589b..86a3036 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,7 +1,6 @@ # Woodpecker CI pipeline for Helix Engage # # Reports at operations.healix360.net/reports/{pipeline-number}/ -# Teams notification on completion. when: - event: [push, manual] @@ -42,13 +41,14 @@ steps: - status: [success, failure] notify-teams: - image: mobydeck/ci-teams-notification - settings: - webhook_url: - from_secret: teams_webhook - facts: project,message - buttons: pipeline + image: curlimages/curl environment: - REPORT_URL: https://operations.healix360.net/reports/${CI_PIPELINE_NUMBER}/index.html + TEAMS_WEBHOOK: + from_secret: teams_webhook + 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 — Build #'"$CI_PIPELINE_NUMBER"'"},{"type":"TextBlock","text":"Branch: '"$CI_COMMIT_BRANCH"'","wrap":true},{"type":"TextBlock","text":"40 E2E tests completed","wrap":true}],"actions":[{"type":"Action.OpenUrl","title":"View Report","url":"https://operations.healix360.net/reports/'"$CI_PIPELINE_NUMBER"'/index.html"},{"type":"Action.OpenUrl","title":"View Pipeline","url":"https://operations.healix360.net/repos/1/pipeline/'"$CI_PIPELINE_NUMBER"'"}]}}]}' when: - status: [success, failure]