Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

priitlatt
Copy link
Contributor

@priitlatt priitlatt commented Sep 15, 2023

Resolves #344.

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

  • app-store-connect get-latest-build-number,
  • app-store-connect get-latest-app-store-build-number,
  • app-store-connect get-latest-testflight-build-number.
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

  • app-store-connect get-latest-build-number
  • app-store-connect get-latest-app-store-build-number
  • app-store-connect get-latest-testflight-build-number

@priitlatt priitlatt added the enhancement New feature or request label Sep 18, 2023
@priitlatt priitlatt changed the title Feature/344 output version number together with build number Add option to output version string when querying latest build number from App Store Connect Sep 18, 2023
@priitlatt priitlatt marked this pull request as ready for review September 18, 2023 08:14
Copy link
Contributor

@remarkov remarkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@priitlatt priitlatt merged commit 79b04fb into master Sep 18, 2023
5 checks passed
@priitlatt priitlatt deleted the feature/344-output-version-number-together-with-build-number branch September 18, 2023 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants