diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-03 19:08:55 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 15:52:38 +0200 |
commit | a47160a8952aaade1753d1f5ef8df3de5ea08b02 (patch) | |
tree | dd4a6bb05fca581d159264b36912d7578edc6e0f /modules/auto-redeploy.nix | |
parent | Redeploy test (diff) | |
download | Spacebar-Open-Infrastructure-a47160a8952aaade1753d1f5ef8df3de5ea08b02.tar.xz |
More verbosity
Diffstat (limited to 'modules/auto-redeploy.nix')
-rw-r--r-- | modules/auto-redeploy.nix | 4 |
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 |