GitLab CI Failed

View All Rules

alias: GitLab CI Failed
trigger:
  - platform: state
    entity_id: sensor.gitlab_279_pipeline_master
    to: 'failed'
  - platform: state
    entity_id: sensor.gitlab_279_pipeline_develop
    to: 'failed'
condition:
  - condition: state
    entity_id: sensor.family_stuart_state
    state: '7'
  - condition: state
    entity_id: light.ff_study_wall
    state: 'on'
action:
  - service: light.turn_on
    data:
      entity_id: light.ff_study_wall
      effect: none
  - service: light.turn_on
    data:
      entity_id: light.ff_study_desk
      effect: none
  - service: script.notify_tts_room
    data_template:
      room: "study"
      value1: "Git Lab has rejected your code."
      hashtag: "#GitLab #CI #Failed"
  - delay: 00:00:01
  - service: light.turn_on
    data:
      entity_id: light.ff_study_wall
      brightness: 255
      effect: none
      rgb_color: [255, 25, 60]
      transition: 2
  - service: light.turn_on
    data:
      entity_id: light.ff_study_desk
      brightness: 77
      effect: none
      rgb_color: [255, 25, 60]
      transition: 2
  - service: notify.signal_stuart
    data:
      message: "Git Lab has rejected your code."

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.