From 9ff23c211c18b76ef82cf0981c0fdfcc5e3e09e8 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 20:02:35 +0200 Subject: Dont log commit log on auto redeploy --- modules/auto-redeploy.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix index 680abb6..0e2cc08 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -37,7 +37,10 @@ #pull new commits git pull #send commit log to discord - curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "```$(git log --pretty=format:"%h - %s" $currentCommit..HEAD)```"}' ${secrets.webhooks.discord.deploy} + #curl -S -F "file=@<(git log --pretty=format:'%h - %s (%an, %ar)' $currentCommit..HEAD)" -F "filename=commit.log" -F "content=Adding commits" -H "Content-Type: multipart/form-data" ${secrets.webhooks.discord.deploy} + + + #call ./update.sh and store output (including stderr) in a file ( nix flake update -- cgit 1.4.1