Skip to content

Commit fae3562

Browse files
authored
Update biotools.py
1 parent 7608d88 commit fae3562

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

github-ci/src/biocontainersci/biotools.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,14 @@ def run(self, f, labels, branch=None):
188188

189189
changed = False
190190
changed_files = [item.a_path for item in repo.index.diff(None)] + repo.untracked_files
191-
print(changed_files)
191+
logging.info(changed_files)
192192
for file_path in files_to_write:
193-
if file_path in changed_files:
194-
repo.index.add([file_path])
195-
changed = True
193+
logging.info(file_path)
194+
for c_file in changed_files:
195+
if file_path.endswith(c_file):
196+
logging.info("Commit file " + c_file)
197+
repo.index.add([c_file])
198+
changed = True
196199

197200
if changed:
198201
repo.index.commit("Add version for %s:%s" % (name, container_version))

0 commit comments

Comments
 (0)