Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Feb 11, 2025
1 parent 8aa2f69 commit 1416836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ needs_update <- function(universe){
update_gitmodules()
write_metadata_json()
update_config_json()
if(all(is.na(match(c('.gitmodules', '.config.json', '.metadata.json'), gert::git_status()$file)))){
registry_changes <- intersect(c('.gitmodules', '.config.json', '.metadata.json'), gert::git_status()$file)
if(length(registry_changes)){
print_message("Registry sync in '%s' triggered for %s", universe, registry_changes)
} else {
dirty <- setdiff(dirty, '.registry') # No effective registry changes
}
}
Expand Down

0 comments on commit 1416836

Please sign in to comment.