Skip to content
Snippets Groups Projects
Commit bb2f2f65 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Skip generating a partial yaml when no go modules have been modified

parent b2a9ee41
No related branches found
No related tags found
3 merge requests!1571catch 2.8.2.3 up with main,!15592.8.2.2-DEVELOPMENT into main,!1555Skip generating a partial yaml when no go modules have been modified
Pipeline #13376 passed
......@@ -123,7 +123,10 @@ def main(argv):
if "ingest" in go_changes:
go_changes.remove("ingest")
write_global_rule(rule=rule)
# Skip writing the rule if no configs will be written below to avoid building an invalid yaml
if go_changes:
write_global_rule(rule=rule)
changes_rule = """changes:
- apps/cli/executables/go/**/*"""
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment