diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-03 20:02:35 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 17:24:52 +0200 |
commit | 9ff23c211c18b76ef82cf0981c0fdfcc5e3e09e8 (patch) | |
tree | ff5e65e956132ddb33752dffc608620b74912fa5 /modules/auto-redeploy.nix | |
parent | Add tab matrix proxy (diff) | |
download | Spacebar-Open-Infrastructure-9ff23c211c18b76ef82cf0981c0fdfcc5e3e09e8.tar.xz |
Dont log commit log on auto redeploy
Diffstat (limited to 'modules/auto-redeploy.nix')
-rw-r--r-- | modules/auto-redeploy.nix | 5 |
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 |