summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-03 19:08:55 +0200
committerRory& <root@rory.gay>2024-06-05 15:52:38 +0200
commita47160a8952aaade1753d1f5ef8df3de5ea08b02 (patch)
treedd4a6bb05fca581d159264b36912d7578edc6e0f
parentRedeploy test (diff)
downloadSpacebar-Open-Infrastructure-a47160a8952aaade1753d1f5ef8df3de5ea08b02.tar.xz
More verbosity
-rw-r--r--modules/auto-redeploy.nix4
1 files changed, 4 insertions, 0 deletions
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