Add missing condition to gitter_notify command

This commit is contained in:
Kamil Śliwak 2021-10-26 10:40:45 +02:00
parent 2162039c50
commit cc80f5e992

View File

@ -42,6 +42,7 @@ commands:
steps:
- run:
name: "Gitter notification"
when: << parameters.condition >>
command: |
[[ "<< parameters.event >>" == "failure" ]] && message=" ❌ Nightly job **${CIRCLE_JOB}** failed on **${CIRCLE_BRANCH}**. Please see [build #${CIRCLE_BUILD_NUM}](${CIRCLE_BUILD_URL}) for details."
[[ "<< parameters.event >>" == "success" ]] && message=" ✅ Nightly job **${CIRCLE_JOB}** succeeded on **${CIRCLE_BRANCH}**. Please see [build #${CIRCLE_BUILD_NUM}](${CIRCLE_BUILD_URL}) for details."