From cf3b9f21c12edd7eae513f45970963c3eefea95d Mon Sep 17 00:00:00 2001 From: graur Date: Fri, 11 Aug 2023 11:48:27 +0300 Subject: [PATCH] fixed auto-pull script --- py/is_branch_exist.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/py/is_branch_exist.py b/py/is_branch_exist.py index 0996f14d..83cf27ac 100644 --- a/py/is_branch_exist.py +++ b/py/is_branch_exist.py @@ -4,9 +4,8 @@ eo_lib_version = sys.argv[1] print('cmd entry:', eo_lib_version) -branch_name = "update-" + eo_lib_version -command = f'git rev-parse --verify {branch_name}' +command = f'git ls-remote --exit-code --heads origin update-{eo_lib_version}' result = subprocess.run(command, shell=True, capture_output=True) is_exist = result.returncode == 0 env_file = os.getenv('GITHUB_ENV')