fix: correct YAML syntax in notification stages
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user