Skip to content

Commit

Permalink
Some more fixes for Github workflow #21
Browse files Browse the repository at this point in the history
  • Loading branch information
conorsham committed Aug 5, 2021
1 parent f401b03 commit 96e9186
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions automations/system/home_assistant_update_notifiication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ action:
- service: rest_command.github_actions

# wait for travis build to start then update notification
- wait_template: "{{ is_state('sensor.github_checkrun_home_assistant_latest', 'queued') }}"
- wait_template: "{{ is_state('sensor.github_checkrun_home_assistant_stable', 'queued') }}"

# Send notification that Travis started
- service: script.notify_engine
Expand All @@ -95,13 +95,13 @@ action:
notification_id: update_ha

# wait for build to complete and update notification with status
- wait_template: "{{ not is_state('sensor.github_checkrun_home_assistant_latest', 'queued') }}"
- wait_template: "{{ not is_state('sensor.github_checkrun_home_assistant_stable', 'queued') }}"

- service: script.notify_engine
data:
who: 'discord'
title: '*Update Home Assistant*'
value1: 'GitHub workflow has {{states("sensor.github_checkrun_home_assistant_latest")}}'
value1: 'GitHub workflow has {{states("sensor.github_checkrun_home_assistant_stable")}}'
target_id: !secret discord_github_id
group: ha_update
tag_id: 'information'
Expand All @@ -116,11 +116,11 @@ action:
message: >
There is an update to Home Assistant Supervised
* {{ states("sensor.current_version") }} -> {{ states("sensor.latest_version") }}
GitHub workflow has {{states('sensor.github_checkrun_home_assistant_latest')}}
GitHub workflow has {{states('sensor.github_checkrun_home_assistant_stable')}}
notification_id: update_ha

# post issue comment on Travis status
- service: rest_command.github_issue_comment
data:
message: "GitHub workflow has {{ states('sensor.github_checkrun_home_assistant_latest') }}"
message: "GitHub workflow has {{ states('sensor.github_checkrun_home_assistant_stable') }}"
issue_number: 14

0 comments on commit 96e9186

Please sign in to comment.