codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
243 stars 42 forks source link

Add option to output version string when querying latest build number from App Store Connect #349

Closed priitlatt closed 11 months ago

priitlatt commented 11 months ago

Resolves #344.

Add an option --include-version to output build's version name together with build number when querying latest build number with actions

Example usage Screenshot 2023-09-15 at 13 42 07

If --include-version is not specified then the actions still outputs just the build number without any additional fields, even if --json is given. That is, constructing next build number using something like

CURRENT_LATEST_BUILD_NUMBER=$(app-store-connect get-latest-testflight-build-number "$APP_ID")
NEXT_BUILD_NUMBER=$(($CURRENT_LATEST_BUILD_NUMBER + 1))

will still work as before.

Example usages of obtaining latest build number with and without version inclusion and JSON output. Screenshot 2023-09-15 at 13 41 47

Updated actions