We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2acbce7 commit a60ef8cCopy full SHA for a60ef8c
rake_tasks/automation.rake
@@ -106,8 +106,8 @@ namespace :automation do
106
if file == '.buildkite/pipeline.yml'
107
require 'yaml'
108
yaml = YAML.safe_load(content)
109
- branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
110
- yaml_tests_branch = yaml['steps'][1]['env']['ES_YAML_TESTS_BRANCH']
+ branch = version.match(/([0-9]+\.[0-9]+)[\.0-9]?.*/)&.[](1)
+ yaml_tests_branch = yaml['steps'][1]['env']['ES_YAML_TESTS_BRANCH'].to_s
111
next if yaml_tests_branch == 'main'
112
113
content.gsub!(yaml_tests_branch, branch)
0 commit comments