diff --git a/lib/puppet_metadata/github_actions.rb b/lib/puppet_metadata/github_actions.rb index 2d94b9e..8f68f8b 100644 --- a/lib/puppet_metadata/github_actions.rb +++ b/lib/puppet_metadata/github_actions.rb @@ -62,6 +62,21 @@ def beaker_os_releases yield [os, 'rolling', distro_puppet_version] else releases&.each do |release| + if PuppetMetadata::OperatingSystem.eol?(os, release) + message = "Skipping EOL operating system #{os} #{release}" + + if (github_output = ENV.fetch('GITHUB_OUTPUT', nil)) + File.open(github_output, 'a') do |f| + # TODO: determine file and position within the file + f.write "::warning file=metadata.json::#{message}" + end + else + warn message + end + + next + end + majors.each do |puppet_version| if AIO.has_aio_build?(os, release, puppet_version[:value]) yield [os, release, puppet_version]