Skip to content

Commit

Permalink
Skip install step when metadata is unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 27, 2024
1 parent 34cd111 commit ed4747a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan_meta_tester/ckan_meta_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def install_ckan(self, file: Path, orig_file: Path, pr_body: Optional[str], meta
if meta_repo is not None:
diff = ckan.find_diff(meta_repo)
if diff is not None:
if len(diff) == 0:
print(f'::notice file={orig_file}::Diff empty for {ckan.name} {ckan.version}, skipping install',
flush=True)
return True
with LogGroup(f'Diffing {ckan.name} {ckan.version}'):
print(diff, end='', flush=True)
with LogGroup(f'Installing {ckan.name} {ckan.version}'):
Expand Down

0 comments on commit ed4747a

Please sign in to comment.