fix(deploy): drop invalid stop_reason key (blocked automation reload) [#734]

stop action takes the message inline; stop_reason is not in the 2026.8
script schema and validation failure aborts the whole automations reload.
Detail: https://projects.knownelement.com/issues/734
This commit is contained in:
2026-09-02 22:04:07 -05:00
parent 2669c3cf7c
commit d08f3131f0
+1 -2
View File
@@ -250,8 +250,7 @@
- condition: template - condition: template
value_template: "{{ trigger.json.ref | default('') != 'refs/heads/master' }}" value_template: "{{ trigger.json.ref | default('') != 'refs/heads/master' }}"
then: then:
- stop: non-master ref ignored - stop: "deploy webhook: non-master ref {{ trigger.json.ref | default('') }} ignored"
stop_reason: "deploy webhook: non-master ref {{ trigger.json.ref | default('') }}"
- variables: - variables:
changed_files: >- changed_files: >-
{{ (trigger.json.commits | default([]) | map(attribute='added') | flatten | list) {{ (trigger.json.commits | default([]) | map(attribute='added') | flatten | list)