Feature: option to reject previous builds and submissions on ASC submission
This PR aims to introduce a few enchantments to existing logic. Namely, if there's an active submission in either App Store or TestFlight, any further attempts to create new submissions will fail. In this PR, options are introduced to solve this issue for both App Store review and TestFlight review.
As a result, the following action:
-
app-store-connect publish
was updated, and now has the following optional flags:
-
--cancel-previous-submissions(used before submission to ASC) -
--expire-previous-builds(used before submission to TestFlight)
The logic used within the flags is achieved by adding four new actions to the CLI tools:
-
app-store-connect review-submissions list -
app-store-connect review-submissions cancel-review-submissions -
app-store-connect builds expire -
app-store-connect builds expire-previous-builds
QA:
- review submissions are correctly listed
- canceling submissions accepts single and multiple types
-
expire-previous-buildsexpires all builds except the one passed as an argument -
expiretargets a specific build and expires it
Resolves https://github.com/codemagic-ci-cd/cli-tools/issues/288.
Please update description with information about what actions were updated, removed and added.
@VeArnold, great job with this feature development! 👍