We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e25a3 commit ad90ffdCopy full SHA for ad90ffd
1 file changed
rake_tasks/automation.rake
@@ -114,14 +114,14 @@ namespace :automation do
114
if file == '.buildkite/pipeline.yml'
115
require 'yaml'
116
yaml = YAML.safe_load(content)
117
- yaml_tests_branch = yaml['steps'][0]['env']['ES_YAML_TESTS_BRANCH']
+ yaml_tests_branch = yaml['steps'][0]['env']['ES_YAML_TESTS_BRANCH'].to_s
118
119
if yaml_tests_branch == 'main'
120
old = content.match(/STACK_VERSION: (.*)/)[1]
121
new = "STACK_VERSION: #{version}"
122
content.gsub!(new, old)
123
else
124
- branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
+ branch = version.to_s.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
125
content.gsub!(yaml_tests_branch, branch)
126
end
127
puts "[#{yaml_tests_branch}] -> [#{branch}] in #{file.gsub('./', '')}"
0 commit comments