Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-yast-rake for openSUSE:Factory checked in at 2022-01-29 21:01:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-yast-rake (Old) and /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-yast-rake" Sat Jan 29 21:01:12 2022 rev:38 rq:949466 version:0.2.45 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-yast-rake/rubygem-yast-rake.changes 2022-01-11 21:20:36.661015437 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new.1898/rubygem-yast-rake.changes 2022-01-29 21:01:43.682816841 +0100 @@ -1,0 +2,7 @@ +Thu Jan 27 12:58:16 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz> + +- Fixed "rake actions:run" to replace the "${{ matrix.<value> }}" + variables in the Docker image name (bsc#1195216) +- 0.2.45 + +------------------------------------------------------------------- Old: ---- yast-rake-0.2.44.gem New: ---- yast-rake-0.2.45.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-yast-rake.spec ++++++ --- /var/tmp/diff_new_pack.c6NACK/_old 2022-01-29 21:01:44.214813265 +0100 +++ /var/tmp/diff_new_pack.c6NACK/_new 2022-01-29 21:01:44.218813238 +0100 @@ -21,7 +21,7 @@ %define rb_build_ruby_abis %{rb_default_ruby_abi} Name: rubygem-yast-rake -Version: 0.2.44 +Version: 0.2.45 Release: 0 %define mod_name yast-rake %define mod_full_name %{mod_name}-%{version} ++++++ yast-rake-0.2.44.gem -> yast-rake-0.2.45.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION new/VERSION --- old/VERSION 2021-01-22 12:31:49.000000000 +0100 +++ new/VERSION 2021-01-22 12:31:49.000000000 +0100 @@ -1 +1 @@ -0.2.44 +0.2.45 Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/github_actions/github_actions/job.rb new/lib/tasks/github_actions/github_actions/job.rb --- old/lib/tasks/github_actions/github_actions/job.rb 2021-01-22 12:31:49.000000000 +0100 +++ new/lib/tasks/github_actions/github_actions/job.rb 2021-01-22 12:31:49.000000000 +0100 @@ -22,7 +22,7 @@ # Github Actions job # @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions class Job - attr_reader :name, :steps, :runs_on, :container, :workflow + attr_reader :name, :steps, :runs_on, :container, :workflow, :matrix # @param name [String] name of the job # @param data [Hash] data from the workflow YAML file @@ -32,6 +32,7 @@ @runs_on = data["runs-on"] @container = data["container"] @workflow = workflow + @matrix = data.fetch("strategy", {})["matrix"] @steps = data["steps"].map do |step| Step.new(self, step) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/github_actions/github_actions/job_runner.rb new/lib/tasks/github_actions/github_actions/job_runner.rb --- old/lib/tasks/github_actions/github_actions/job_runner.rb 2021-01-22 12:31:49.000000000 +0100 +++ new/lib/tasks/github_actions/github_actions/job_runner.rb 2021-01-22 12:31:49.000000000 +0100 @@ -78,7 +78,23 @@ abort "Unsupported container definition: #{job.container.inspect}" end - Container.new(image_name, options.to_s) + Container.new(expand_name(image_name), options.to_s) + end + + # replace the ${{ matrix.<value> }} placeholders in the image name + # + # @param image_name [String] name of the Docker image + # @return [String] name with replaced values + def expand_name(image_name) + image_name.gsub(/\$\{\{\s*matrix\.[^}]*\}\}/) do |subst| + name = /\$\{\{\s*matrix\.([^}]*)\}\}/.match(subst)[1].strip + value = job.matrix ? job.matrix[name] : subst + + # if the value is an Array use the first value by default + replacement = value.is_a?(Array) ? value.first : value.to_s + puts "Using ${{matrix.#{name}}} value: #{replacement.inspect}" + replacement + end end # run a job step diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-01-10 23:55:49.000000000 +0100 +++ new/metadata 2022-01-27 15:35:26.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: yast-rake version: !ruby/object:Gem::Version - version: 0.2.44 + version: 0.2.45 platform: ruby authors: - Josef Reidinger autorequire: bindir: bin cert_chain: [] -date: 2022-01-10 00:00:00.000000000 Z +date: 2022-01-27 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: packaging_rake_tasks