我们没有更改 Jenkinsfile 或 Fastfile 中的任何内容,但是突然间我们在日志中看到了这一点。
无效的对象名称 master~1
它会导致无限的自动碰撞。
我们在 Fastffile 中使用这个函数来检查我们是否应该升级版本。
def should_bump_version
last_changes = `git diff podspec HEAD~1`
!last_changes.lines.any? { | line | line.start_with?("+") and line.include?("s.version") }
end