mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Re-enable module comparisons in validate-modules (#21582)
* Re-enable module comparisons, specifically for new module detection and for finding new options/arguments * Only do new module checks in shippable, local will display warning
This commit is contained in:
@@ -796,6 +796,13 @@ def command_sanity_validate_modules(args, targets):
|
||||
if skip_paths:
|
||||
cmd += ['--exclude', '^(%s)' % '|'.join(skip_paths)]
|
||||
|
||||
if is_shippable():
|
||||
cmd.extend([
|
||||
'--base-branch', os.environ['BASE_BRANCH']
|
||||
])
|
||||
else:
|
||||
display.warning("Cannot perform module comparison against the base branch when running locally")
|
||||
|
||||
run_command(args, cmd, env=env)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user