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
[action] app_store_build_number: Pass teamID when selecting itunes team #14604
[action] app_store_build_number: Pass teamID when selecting itunes team #14604
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Context for someone reviewing this: latest_testflight_build_number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we are in here... we should remove the setting of the ENV
s from the verify_block
like we did here with that are in the team_id
and team_name
options since that is not what it is meant for 🙃
@@ -21,7 +21,7 @@ def self.run(params) | |||
def self.get_build_number(params) | |||
UI.message("Login to App Store Connect (#{params[:username]})") | |||
Spaceship::Tunes.login(params[:username]) | |||
Spaceship::Tunes.select_team | |||
Spaceship::Tunes.select_team(team_id: params[:team_id]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add team_name
in here as well?
Spaceship::Tunes.select_team(team_id: params[:team_id]) | |
Spaceship::Tunes.select_team(team_id: params[:team_id], team_name: params[:team_name]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with both requested changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes! This is 🔥
Hey @lexorus 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
Congratulations! 🎉 This was released as part of fastlane 2.121.0 🚀 |
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
We are using the
LatestTestflightBuildNumberAction
for incrementing our project build number. We are providing all the necessary params and credentials for signing and it was working smooth. Lately, I guess after unification of AppStoreConnect and DeveloperPortal teams, fastlane is asking to specify the team id even if we are passing it within the params.If we pass the environment variable before launching this fastlane action, everything works. But we are passing it through the parameters, and it should also work. I started looking where the problem is and found that when
AppStoreBuildNumberAction
is preparingSpaceship::Tunes
, it was not passing the specifiedteam_id
.Adding the
team_id
parameter solved the issue.Description
There is a pretty small change and it is described above in detail. About how did I test it, I tested within our own project, the next use cases:
Login to App Store Connect
when aFASTLANE_ITC_TEAM_ID
env var is setLogin to App Store Connect
whenteam_id
argument is passed to theLatestTestflightBuildNumberAction