diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-06-29 14:52:09 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-06-29 15:11:18 +0300 |
commit | 5d14d52507352a4a0cb614f948dabbd85cc68298 (patch) | |
tree | 354f1cfbd58cd6e53d9ec28e8a30c9e2f2f79510 /lib | |
parent | 64afa20360bbd4a086305282c2a82e42614a615c (diff) | |
download | gitlab-ci-5d14d52507352a4a0cb614f948dabbd85cc68298.tar.gz |
fix list of branches in only section
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_ci_yaml_processor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_ci_yaml_processor.rb b/lib/gitlab_ci_yaml_processor.rb index a6806d3..18ce1ad 100644 --- a/lib/gitlab_ci_yaml_processor.rb +++ b/lib/gitlab_ci_yaml_processor.rb @@ -65,8 +65,8 @@ class GitlabCiYamlProcessor return true if tag && only_params.include?("tags") return true if !tag && only_params.include?("branches") - only_params.each do |pattern| - return match_ref?(pattern, ref) + only_params.find do |pattern| + match_ref?(pattern, ref) end else return false if tag && except_params.include?("tags") |