Skip to content

Commit 0c9b2da

Browse files
committed
[CI] Updates YAML tests branch in bumpmatrix
1 parent 6efa650 commit 0c9b2da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rake_tasks/automation.rake

+6
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ namespace :automation do
103103
regexp = Regexp.new(/([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}?+(-SNAPSHOT)?)/)
104104
files.each do |file|
105105
content = File.read(file)
106+
if file == '.buildkite/pipeline.yml'
107+
branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
108+
old_branch = content.match(/ES_YAML_TESTS_BRANCH: ([0-9.]+)/)[1]
109+
content.gsub!(old_branch, branch)
110+
puts "[#{old_branch}] -> [#{branch}] in #{file.gsub('./', '')}"
111+
end
106112
match = content.match(regexp)
107113
next if match.nil?
108114

0 commit comments

Comments
 (0)