From a47160a8952aaade1753d1f5ef8df3de5ea08b02 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 19:08:55 +0200 Subject: More verbosity --- modules/auto-redeploy.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix index 9387980..7cecb93 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -9,9 +9,13 @@ ${pkgs.curl}/bin/curl -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: $(git rev-parse HEAD)" currentCommit=$(git rev-parse HEAD) git fetch --all #check if there are any new commits + echo "Checking for new commits..." + echo "Local: $(git rev-parse HEAD)" + echo "Remote: $(git rev-parse @{u})" if [ $(git rev-parse HEAD) = $(git rev-parse @{u}) ]; then echo "Already up-to-date" exit 0 -- cgit 1.4.1