summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-03 20:02:35 +0200
committerRory& <root@rory.gay>2024-06-05 17:24:52 +0200
commit9ff23c211c18b76ef82cf0981c0fdfcc5e3e09e8 (patch)
treeff5e65e956132ddb33752dffc608620b74912fa5
parentAdd tab matrix proxy (diff)
downloadSpacebar-Open-Infrastructure-9ff23c211c18b76ef82cf0981c0fdfcc5e3e09e8.tar.xz
Dont log commit log on auto redeploy
-rw-r--r--modules/auto-redeploy.nix5
1 files changed, 4 insertions, 1 deletions
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