Skip to content

Commit 904cf44

Browse files
committed
[CI] Fixes rake task for automated matrix version bumping
1 parent 1c9212e commit 904cf44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rake_tasks/automation.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ namespace :automation do
105105
if file == '.buildkite/pipeline.yml'
106106
require 'yaml'
107107
yaml = YAML.safe_load(content)
108-
branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
109-
yaml_tests_branch = yaml['steps'][1]['env']['ES_YAML_TESTS_BRANCH']
108+
branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1].to_s
109+
yaml_tests_branch = yaml['steps'][1]['env']['ES_YAML_TESTS_BRANCH'].to_s
110110
unless ['main', '8.x'].include? yaml_tests_branch
111111
content.gsub!(yaml_tests_branch, branch)
112112
puts "[#{yaml_tests_branch}] -> [#{branch}] in #{file.gsub('./', '')}"

0 commit comments

Comments
 (0)