Skip to content

Commit 028d5c3

Browse files
authored
Merge pull request #2212 from kattni/actions-status-light
Added completed - cancelled code.
2 parents 12dd64d + 9e4f56a commit 028d5c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

GitHub_Actions_Status_Tower_Light/actions_status.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ def buzzer_on_completion():
141141
print("Sending serial command 'RED_OFF'.")
142142
send_command(mSerial, RED_OFF)
143143

144+
if conclusion == "cancelled":
145+
print("Actions run status: Completed - cancelled.")
146+
if ENABLE_USB_LIGHT_MESSAGES:
147+
send_command(mSerial, YELLOW_OFF)
148+
print("Sending serial command 'RED_BLINK'.")
149+
send_command(mSerial, RED_BLINK)
150+
buzzer_on_completion()
151+
time.sleep(COMPLETION_LIGHT_TIME - COMPLETION_BUZZER_TIME)
152+
if ENABLE_USB_LIGHT_MESSAGES:
153+
print("Sending serial command 'RED_OFF'.")
154+
send_command(mSerial, RED_OFF)
155+
144156
else:
145157
print("Already followed the current run.")
146158
time.sleep(POLL_DELAY)

0 commit comments

Comments
 (0)