mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-07-13 10:21:14 +00:00
fix(gitops): define timestamp_slug globally in apply_multi_file_changes
This commit is contained in:
@@ -52,11 +52,11 @@ class RepositoryController:
|
||||
|
||||
def apply_multi_file_changes(self, updates: dict, metrics: dict, safety_report: str = "") -> str:
|
||||
import os
|
||||
timestamp_slug = datetime.now().strftime("%Y%m%d-%H%M")
|
||||
run_id = os.environ.get("GITHUB_RUN_ID")
|
||||
if run_id:
|
||||
branch_name = f"bot/knowledge-update-run-{run_id}"
|
||||
else:
|
||||
timestamp_slug = datetime.now().strftime("%Y%m%d")
|
||||
branch_name = f"bot/knowledge-update-{timestamp_slug}"
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user