Skip to content

Commit

Permalink
Merge pull request #174 from Graur/fixed-auto-pull-script
Browse files Browse the repository at this point in the history
fixed auto-pull script
  • Loading branch information
yegor256 committed Aug 11, 2023
2 parents 2bb361c + 2811b90 commit 712140a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/is_branch_exist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 712140a

Please sign in to comment.