I am trying to promote an android app build in internal testing to production using Fastlane. When I try to promote the build with version lesser than latest release in internal testing, it fails with error Track 'internal' does not have any releases
. However, if I try to promote the latest release, it works fine.
Here is the Appfile and Fastfile.
# Appfile
json_key_file "path/to/json/key/file"
package_name "PACKAGE_NAME"
-------------------------------------------------------
# Fastfile
default_platform(:android)
lane :promote_release do
sh("fastlane supply init --track internal")
supply(
track: "internal",
track_promote_to: "production",
version_name: "1.05.00",
version_code: "138"
)
end
I have the latest release with version name 1.05.00 and version code 140 in internal testing(Google Play Store).
Is it that fastlane only allows to promote the latest release?