Skip to content

Commit a60ef8c

Browse files
committed
[CI] Updates automation for bump matrix
1 parent 2acbce7 commit a60ef8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rake_tasks/automation.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ namespace :automation do
106106
if file == '.buildkite/pipeline.yml'
107107
require 'yaml'
108108
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']
109+
branch = version.match(/([0-9]+\.[0-9]+)[\.0-9]?.*/)&.[](1)
110+
yaml_tests_branch = yaml['steps'][1]['env']['ES_YAML_TESTS_BRANCH'].to_s
111111
next if yaml_tests_branch == 'main'
112112

113113
content.gsub!(yaml_tests_branch, branch)

0 commit comments

Comments
 (0)