Commit 22710ae4 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

rules

parent 2ef4c8c4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -33,7 +33,9 @@ telegram-notification_success:
    NOTIFICATION_ICON: "✅"
    NOTIFICATION_TYPE: "succeeded"
  rules:
    - when: on_success
    - if: '( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" ) && $CI_COMMIT_BRANCH =~ $CUSTOM_BRANCHES'
      when: on_success
    - when: never

telegram-notification_failure:
  extends: .common_telegram-notification
@@ -41,4 +43,6 @@ telegram-notification_failure:
    NOTIFICATION_ICON: "💥"
    NOTIFICATION_TYPE: "failed"
  rules:
    - when: on_failure
    - if: '( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" ) && $CI_COMMIT_BRANCH =~ $CUSTOM_BRANCHES'
      when: on_failure
    - when: never