Skip to content

Commit

Permalink
[CI] Updates YAML tests branch in bumpmatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Sep 2, 2024
1 parent 6efa650 commit 0c9b2da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rake_tasks/automation.rake
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ namespace :automation do
regexp = Regexp.new(/([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}?+(-SNAPSHOT)?)/)
files.each do |file|
content = File.read(file)
if file == '.buildkite/pipeline.yml'
branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
old_branch = content.match(/ES_YAML_TESTS_BRANCH: ([0-9.]+)/)[1]
content.gsub!(old_branch, branch)
puts "[#{old_branch}] -> [#{branch}] in #{file.gsub('./', '')}"
end
match = content.match(regexp)
next if match.nil?

Expand Down

0 comments on commit 0c9b2da

Please sign in to comment.