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:
app-store-connect apps builds - add optional --platform switch to search only for builds with specified platform.
app-store-connect apps expire-build-submitted-for-review - add optional --platform switch to expire builds only for specified platform.
app-store-connect builds list - add optional --platform switch to search only for builds with specified platform.
app-store-connect publish - only expire builds for the same platform that is being published when invoked with option --expire-build-submitted-for-review.
Report in Codemagic CI/CD discussions: https://github.com/orgs/codemagic-ci-cd/discussions/2495
CLI option
--expire-build-submitted-for-review
of actionapp-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 actionapp-store-connect apps expire-build-submitted-for-review
and use that option when invoking the action internally fromapp-store-connect publish
.Updated actions:
app-store-connect apps builds
- add optional--platform
switch to search only for builds with specified platform.app-store-connect apps expire-build-submitted-for-review
- add optional--platform
switch to expire builds only for specified platform.app-store-connect builds list
- add optional--platform
switch to search only for builds with specified platform.app-store-connect publish
- only expire builds for the same platform that is being published when invoked with option--expire-build-submitted-for-review
.