From 43d1c1ea6d11de042a958467aaac2b432251f071 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Wed, 12 Jun 2024 12:03:36 +0200 Subject: [PATCH] improve action discord logging --- scripts/webhook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/webhook.sh b/scripts/webhook.sh index db8d8c9..218d9f6 100755 --- a/scripts/webhook.sh +++ b/scripts/webhook.sh @@ -1 +1 @@ -curl -i -s -o /dev/null -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$* on $(basename "$(git describe --always --all)") at $(date)\"}" https://discord.com/api/webhooks/1250323633205940244/yu1v_moeBxWi4YWaRK_s4tNAXUGUJml-E2PbhToccVFo1Ax2_6Iq6R6lEONCKikHBBn4 \ No newline at end of file +curl -i -s -o /dev/null -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"$*\n on $(basename "$(git describe --always --all)") with \`$(git log --no-abbrev --oneline | head -n1 | sed -E 's/\w+ (.*)/\1/g')\`\n at $(date)\"}" https://discord.com/api/webhooks/1250323633205940244/yu1v_moeBxWi4YWaRK_s4tNAXUGUJml-E2PbhToccVFo1Ax2_6Iq6R6lEONCKikHBBn4 \ No newline at end of file