.notify-telegram:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_BRANCH == "master"
when: always
script: |
if [ $CI_JOB_STATUS == 'success' ]; then
node ./tools/telegram/telegram-ci.mjs 1 || echo "Notifying in telegram was failed"
else
node ./tools/telegram/telegram-ci.mjs 0 || echo "Notifying in telegram was failed"
fi