1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-18 06:15:46 +01:00

GH Actions Update ()

This commit is contained in:
Otto Winter
2020-07-14 14:34:44 +02:00
committed by GitHub
parent 2012c769f6
commit cf703f6ac4
15 changed files with 846 additions and 388 deletions

@ -101,8 +101,10 @@ def splitlines_no_ends(string):
def changed_files():
for remote in ('upstream', 'origin'):
command = ['git', 'merge-base', f'{remote}/dev', 'HEAD']
check_remotes = ['upstream', 'origin']
check_remotes.extend(splitlines_no_ends(get_output('git', 'remote')))
for remote in check_remotes:
command = ['git', 'merge-base', f'refs/remotes/{remote}/dev', 'HEAD']
try:
merge_base = splitlines_no_ends(get_output(*command))[0]
break