fix: correct YAML syntax in notification stages
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

- Separate echo arguments for proper variable expansion
- Fix 'when' clause indentation (remove extra dash)
- Resolves: cannot unmarshal map into string error
This commit is contained in:
Ehsan.Asadi
2025-12-30 21:51:58 +03:30
parent 432aa63e36
commit 7f4d167ca6

View File

@@ -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]
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]
event: [push, tag]
status: failure