vpcreatz commited on
Commit
21043a1
·
unverified ·
1 Parent(s): 6f85dc9

Log latest commit ID on successful update (#42)

Browse files

Added logging for the latest commit ID after a successful update.

Files changed (1) hide show
  1. update.py +4 -0
update.py CHANGED
@@ -53,5 +53,9 @@ if UPSTREAM_REPO:
53
 
54
  if update.returncode == 0:
55
  log_info("Successfully updated with latest commits!!")
 
 
 
 
56
  else:
57
  log_error("❌ Update failed! Retry or ask for support.")
 
53
 
54
  if update.returncode == 0:
55
  log_info("Successfully updated with latest commits!!")
56
+ commit_check = srun(["git", "rev-parse", "HEAD"], capture_output=True, text=True)
57
+ if commit_check.returncode == 0:
58
+ commit_id = commit_check.stdout.strip()
59
+ log_info(f"Latest commit ID: {commit_id}")
60
  else:
61
  log_error("❌ Update failed! Retry or ask for support.")