summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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