Skip to content
Permalink
Browse files

Merge pull request #60396 from reitermarkus/actions

Split versions and compare parts.
  • Loading branch information...
reitermarkus committed Mar 14, 2019
1 parent bab800d commit e1f1a12cd7a560801f4308e7e75698d43d26732b
Showing with 2 additions and 1 deletion.
  1. +2 −1 .github/actions/automerge/git_diff_extensions.rb
@@ -26,7 +26,8 @@ def version_changed?

def version_decreased?
return false unless version_changed?
Version.parse(new_version) < Version.parse(old_version)
new_version.split(',').zip(old_version.split(','))
.any? { |v_new, v_old| Version.new(v_new.to_s) < Version.new(v_old.to_s) }
end

def old_version

0 comments on commit e1f1a12

Please sign in to comment.
You can’t perform that action at this time.