We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c9212e commit 904cf44Copy full SHA for 904cf44
rake_tasks/automation.rake
@@ -105,8 +105,8 @@ namespace :automation do
105
if file == '.buildkite/pipeline.yml'
106
require 'yaml'
107
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']
+ branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1].to_s
+ yaml_tests_branch = yaml['steps'][1]['env']['ES_YAML_TESTS_BRANCH'].to_s
110
unless ['main', '8.x'].include? yaml_tests_branch
111
content.gsub!(yaml_tests_branch, branch)
112
puts "[#{yaml_tests_branch}] -> [#{branch}] in #{file.gsub('./', '')}"
0 commit comments