From f4fafaa8748183cd0dbd52c91bb66c9ede49cdf5 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 19:23:12 +0200 Subject: Move first webhook to after update check --- modules/auto-redeploy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix index 4b2a640..e3b81fc 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -18,7 +18,6 @@ #after = [ "network.target" ]; serviceConfig = { ExecStart = pkgs.writeShellScript "auto-redeploy" '' - ${pkgs.curl}/bin/curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "System started redeploy."}' ${secrets.webhooks.discord.deploy} cd /Spacebar-Open-Architecture #store current commit hash echo "Current commit: $(${pkgs.git}/bin/git rev-parse HEAD)" @@ -32,6 +31,7 @@ echo "Already up-to-date" exit 0 fi + ${pkgs.curl}/bin/curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "System started redeploy."}' ${secrets.webhooks.discord.deploy} #pull new commits ${pkgs.git}/bin/git pull #send commit log to discord -- cgit 1.5.1