Skip to content

Commit 6cd1f34

Browse files
authored
Add cancelled workflow (#9)
1 parent 2e40223 commit 6cd1f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ async function run() {
5353
const repository_url = ctx.payload.repository?.html_url
5454
const commit_author = ctx.actor
5555

56-
var themeColor = lastStep?.conclusion === "success" ? "90C978": "C23B23"
57-
const conclusion = lastStep?.conclusion === "success" ? "SUCCEEDED" : "FAILED"
56+
var themeColor = lastStep?.conclusion === "success" ? "90C978": lastStep?.conclusion === "cancelled" ? "FFF175" : "C23B23"
57+
const conclusion = lastStep?.conclusion === "success" ? "SUCCEEDED" : lastStep?.conclusion === "cancelled" ? "CANCELLED" : "FAILED"
5858

5959
const webhookBody = {
6060
"@type": "MessageCard",

0 commit comments

Comments
 (0)