version_bump_podspec

Increment or set the version in a podspec file

You can use this action to manipulate any 'version' variable contained in a ruby file. For example, you can use it to bump the version of a cocoapods' podspec file. It also supports versions that are not semantic: 1.4.14.4.1 For such versions there is an option to change appendix (4.1)

version_bump_podspec
Supported platforms ios, mac
Author @Liquidsoul, @KrauseFx

2 Examples

version = version_bump_podspec(path: "TSMessages.podspec", bump_type: "patch")
version = version_bump_podspec(path: "TSMessages.podspec", version_number: "1.4")

Parameters

Key Description
path You must specify the path to the podspec file to update
bump_type The type of this version bump. Available: patch, minor, major
version_number Change to a specific version. This will replace the bump type value
version_appendix Change version appendix to a specific value. For example 1.4.14.4.1 -> 1.4.14.5


To show the documentation in your terminal, run

fastlane action version_bump_podspec

View source code


Back to actions