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 expire builds only for selected platform #407

Merged
merged 6 commits into from
May 30, 2024

Conversation

priitlatt
Copy link
Contributor

@priitlatt priitlatt commented May 29, 2024

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:

  • 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.

@priitlatt priitlatt added enhancement New feature or request app-store-connect labels May 29, 2024
@priitlatt priitlatt marked this pull request as ready for review May 29, 2024 13:43
@priitlatt priitlatt merged commit 53f13aa into master May 30, 2024
11 checks passed
@priitlatt priitlatt deleted the feature/add-build-platform-filtering branch May 30, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-store-connect enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants