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
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🎉 Pipeline completed successfully!"
|
- echo "🎉 Pipeline completed successfully!"
|
||||||
- echo "Branch: ${CI_COMMIT_BRANCH}"
|
- echo "Branch:" "${CI_COMMIT_BRANCH}"
|
||||||
- echo "Commit: ${CI_COMMIT_SHA:0:8}"
|
- echo "Commit:" "${CI_COMMIT_SHA:0:8}"
|
||||||
- echo "Image: hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}"
|
- echo "Image:" "hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}"
|
||||||
when:
|
when:
|
||||||
- event: [push, tag]
|
event: [push, tag]
|
||||||
status: success
|
status: success
|
||||||
|
|
||||||
notify-failure:
|
notify-failure:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "❌ Pipeline failed!"
|
- echo "❌ Pipeline failed!"
|
||||||
- echo "Branch: ${CI_COMMIT_BRANCH}"
|
- echo "Branch:" "${CI_COMMIT_BRANCH}"
|
||||||
- echo "Commit: ${CI_COMMIT_SHA:0:8}"
|
- echo "Commit:" "${CI_COMMIT_SHA:0:8}"
|
||||||
- echo "Please check the logs above"
|
- echo "Please check the logs above"
|
||||||
when:
|
when:
|
||||||
- event: [push, tag]
|
event: [push, tag]
|
||||||
status: failure
|
status: failure
|
||||||
|
|||||||
Reference in New Issue
Block a user