File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ namespace :automation do
98
98
task :bumpmatrix , :version do |_ , args |
99
99
abort ( '[!] Required argument [version] missing' ) unless ( version = args [ :version ] )
100
100
gh_actions = Dir . glob ( File . expand_path ( '../.github/workflows/*.yml' , __dir__ ) )
101
-
102
101
files = gh_actions + [ '.buildkite/pipeline.yml' ]
103
102
regexp = Regexp . new ( /([0-9]{1,2}\. [0-9]{1,2}\. [0-9]{1,2}?+(-SNAPSHOT)?)/ )
104
103
files . each do |file |
@@ -108,10 +107,10 @@ namespace :automation do
108
107
yaml = YAML . safe_load ( content )
109
108
branch = version . match ( /([0-9]+\. [0-9]+)\. [0-9]+.*/ ) [ 1 ]
110
109
yaml_tests_branch = yaml [ 'steps' ] [ 1 ] [ 'env' ] [ 'ES_YAML_TESTS_BRANCH' ]
111
- next if yaml_tests_branch == 'main'
112
-
113
- content . gsub! ( yaml_tests_branch , branch )
114
- puts "[ #{ yaml_tests_branch } ] -> [ #{ branch } ] in #{ file . gsub ( './' , '' ) } "
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 ( './' , '' ) } "
113
+ end
115
114
end
116
115
match = content . match ( regexp )
117
116
next if match . nil?
You can’t perform that action at this time.
0 commit comments