Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Print summary for outdated modules #866

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

bastelfreak
Copy link
Member

Previously we only printed a diff for every module. Now we also print a hacky table with every outdated module.

@bastelfreak bastelfreak force-pushed the cioutdatedsummary branch 2 times, most recently from 4e121c0 to 004d2e0 Compare January 14, 2024 20:34
@bastelfreak bastelfreak force-pushed the cioutdatedsummary branch 3 times, most recently from b74bbc3 to b3cc6d8 Compare January 14, 2024 21:36
Previously we only printed a diff for every module. Now we also print a
hacky table with every outdated module.
Copy link
Member

@kenyon kenyon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Table looks good.

Dir.glob('modules/voxpupuli/puppet-*/.msync.yml').each do|f|
version_module = YAML.load_file(f)['modulesync_config_version']
mod = f.split('/')[2]
puts "| #{mod}\t| #{version_module}\t|" if version != version_module
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is hacky and can be improved. But it provides a readable table and it works without any additional ruby gems.If someone wants to improve it, feel free.

@bastelfreak bastelfreak merged commit 26ae096 into master Jan 15, 2024
4 checks passed
@bastelfreak bastelfreak deleted the cioutdatedsummary branch January 15, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants