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
235 stars 39 forks source link

Add option to expire builds only for selected platform #407

Closed priitlatt closed 1 month ago

priitlatt commented 1 month ago

Report in Codemagic CI/CD discussions: https://github.com/orgs/codemagic-ci-cd/discussions/2495

CLI option --expire-build-submitted-for-review of action app-store-connect publish can yield unexpected result by expiring build from the same application, but from another platform.

As builds were not being filtered by platform when listing them for expiration, then it can happen that iOS build can be looked up and expired when publishing for macOS, or macOS build is expired when publishing iOS app. This is not desired and we should only expire builds that are of the same platform that is currently being published.

To achieve this, add optional --platform switch to action app-store-connect apps expire-build-submitted-for-review and use that option when invoking the action internally from app-store-connect publish.

Updated actions: