Coder Social home page Coder Social logo

Comments (5)

VeArnold avatar VeArnold commented on June 6, 2024 3

Hi @kevmo314!

This got slightly delayed but has now been merged in #289.

For Codemagic CLI tools users
The following actions:

  • app-store-connect builds submit-to-app-store - docs
  • app-store-connect publish - docs

now accept the flag --cancel-previous-submissions.

The flag acts the same as fastlane's reject_if_possible. Where before submission, there's an attempt to cancel any previous submission for the application that is in any of the following states: WAITING_FOR_REVIEW, IN_REVIEW or UNRESOLVED_ISSUES.

The following actions:

  • app-store-connect builds submit-to-testflight - docs
  • app-store-connect publish - docs

now accept the flag --expire-build-submitted-for-review.

The flag acts similarly to fastlane's reject_build_waiting_for_review; however, a build both in status IN_REVIEW, and WAITING_FOR_REVIEW is expired, as in both cases further submissions are blocked.

Alternatively, these actions (which are used within the flags) can be called directly for a specific application as well, such as:

  • app-store-connect apps expire-build-submitted-for-review <app-id> - docs
  • app-store-connect apps cancel-review-submissions <app-id> - docs

When using the flag, the blocking build or submission will be expired/cancelled if in a state where it is possible. For cancel-review-submissions, within the action itself, it is possible to target more specifically what you wish to cancel, e.g., specify the platform or state to cancel; see docs. Note that an expired build will no longer be available for testers.

For Codemagic CI/CD users
This option was also added for Codemagic CI/CD users using the codemagic.yaml configuration. The relevant examples have been added to the documentation.

For submitting to Testflight, the publishing section has to be updated as follows:

publishing:
  app_store_connect:
    submit_to_testflight: true
    expire_build_submitted_for_review: true

And for App Store, as follows:

publishing:
  app_store_connect:
    submit_to_app_store: true
    cancel_previous_submissions: true

Along with these, some other actions were introduced with the PR, which can be seen in the changelog.
Thanks again for the feedback and request! :) Please try it out, and let us know if you encounter any unexpected behaviour.

from cli-tools.

VeArnold avatar VeArnold commented on June 6, 2024 2

@kevmo314

Hi! :)

Good proposal. However, to understand the aims and goals better, based on your description, it seems that the more fitting extension would be equivalent to Fastlane's reject_build_waiting_for_review instead of expire_previous_builds.

Please correct me if I am missing something. Thanks! :)

from cli-tools.

kevmo314 avatar kevmo314 commented on June 6, 2024

This would be similar to fastlane's reject_if_possible: http://docs.fastlane.tools/actions/upload_to_app_store/#upload_to_app_store

or expire_previous_builds for testflight: https://docs.fastlane.tools/actions/pilot/

from cli-tools.

priitlatt avatar priitlatt commented on June 6, 2024

Hi @kevmo314, thanks for bringing this up. This sure sounds like a useful addition to app-store-connect publish. We'll give it some more thought on how to implement it and let you know. But please note that as of now I'm not yet able to give any ETA for it.

from cli-tools.

kevmo314 avatar kevmo314 commented on June 6, 2024

Yeah that's probably correct. We run publish as our last CI/CD step right now and it fails due to an existing build being in review (both testflight and app store) so the ideal behavior would be to be able to unmark the older builds

from cli-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.