From 7f4d167ca6d848f6229b7bdb5814cbfb30393256 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 21:51:58 +0330 Subject: [PATCH] fix: correct YAML syntax in notification stages - Separate echo arguments for proper variable expansion - Fix 'when' clause indentation (remove extra dash) - Resolves: cannot unmarshal map into string error --- .woodpecker.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index da3d93f..f6d5699 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -331,20 +331,20 @@ pipeline: image: alpine:latest commands: - echo "🎉 Pipeline completed successfully!" - - echo "Branch: ${CI_COMMIT_BRANCH}" - - echo "Commit: ${CI_COMMIT_SHA:0:8}" - - echo "Image: hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}" + - echo "Branch:" "${CI_COMMIT_BRANCH}" + - echo "Commit:" "${CI_COMMIT_SHA:0:8}" + - echo "Image:" "hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}" when: - - event: [push, tag] - status: success + event: [push, tag] + status: success notify-failure: image: alpine:latest commands: - echo "❌ Pipeline failed!" - - echo "Branch: ${CI_COMMIT_BRANCH}" - - echo "Commit: ${CI_COMMIT_SHA:0:8}" + - echo "Branch:" "${CI_COMMIT_BRANCH}" + - echo "Commit:" "${CI_COMMIT_SHA:0:8}" - echo "Please check the logs above" when: - - event: [push, tag] - status: failure + event: [push, tag] + status: failure