CI: improve more ci worflow

This commit is contained in:
mahee96
2026-02-24 03:16:26 +05:30
parent 97b04094eb
commit ae1bd49a99

View File

@@ -256,13 +256,18 @@ def deploy(repo, source_json, release_tag, short_commit, marketing_version, vers
repo = (ROOT / repo).resolve()
ipa_path = ROOT / ipa_name
if not repo.exists():
raise SystemExit(f"{repo} repo missing")
if not ipa_path.exists():
raise SystemExit(f"{ipa_path} missing")
run(f"pushd {repo}", check=True)
pushed = False
if Path.cwd().resolve() != repo:
run(f"pushd {repo}", check=True)
pushed = True
try:
source_path = repo / source_json
if not source_path.exists():
@@ -309,7 +314,7 @@ def deploy(repo, source_json, release_tag, short_commit, marketing_version, vers
raise SystemExit("Deploy push failed after retries")
finally:
run("popd", check=False)
if pushed: run("popd", check=False)
# ----------------------------------------------------------
# ENTRYPOINT