vpcreatz commited on
Log latest commit ID on successful update (#42)
Browse filesAdded logging for the latest commit ID after a successful update.
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.")
|