this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: mention on discord on deploy finish

dusk 046fcede bd0349e3

+3 -2
+3 -2
deploy.nu
··· 6 6 7 7 source-env secrets/deploy-webhook.nu 8 8 9 - def webhook [title: string, content: string, exit_code?: number] { 9 + def webhook [title: string, content: string, exit_code?: number, ping?: bool] { 10 10 let type = if $exit_code == null { "⌛" } else if $exit_code == 0 { "✔️" } else { "❌" } 11 11 let msg = { 12 12 embeds: [{ 13 + content: (if $ping { "<@853064602904166430>" } else { "" }), 13 14 description: $content, 14 15 title: $"($type) /($title)/", 15 16 footer: { ··· 30 31 let end = date now 31 32 32 33 let paste_url = http post --content-type multipart/form-data "https://0x0.st" {file: ($result | to text | into binary), secret: true} 33 - webhook $hooktitle $"=== deployed ($hostname): finished ===\n\ntook ($end - $start)\n\nlog: ($paste_url)" $result.exit_code 34 + webhook $hooktitle $"=== deployed ($hostname): finished ===\n\ntook ($end - $start)\n\nlog: ($paste_url)" $result.exit_code true 34 35 } 35 36 36 37 def update-input [input: string] {