Add more repos and debug the clone
This commit is contained in:
parent
f3a9572f0c
commit
dc197cf7cf
@ -4,7 +4,9 @@ import subprocess
|
||||
|
||||
REPOS = {
|
||||
"dev-tools": "https://git.dvirlabs.com/dvirlabs/dev-tools.git",
|
||||
"infra": "https://git.dvirlabs.com/dvirlabs/infra.git"
|
||||
"infra": "https://git.dvirlabs.com/dvirlabs/infra.git",
|
||||
"observability-stack": "https://git.dvirlabs.com/dvirlabs/observability-stack.git",
|
||||
"sandbox": "https://git.dvirlabs.com/dvirlabs/sandbox.git",
|
||||
}
|
||||
|
||||
# ✅ CORRECT GitHub repo (lab-monitor, not apps-gitops)
|
||||
@ -114,6 +116,7 @@ def push_workflow():
|
||||
result = subprocess.run(["git", "clone", GITHUB_REPO, REPO_PATH])
|
||||
if result.returncode != 0:
|
||||
raise Exception("❌ Failed to clone lab-monitor repo")
|
||||
subprocess.run(["ls -l", REPO_PATH])
|
||||
|
||||
# ✅ Checkout main (GitHub default branch)
|
||||
subprocess.run(["git", "-C", REPO_PATH, "fetch"], check=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user