Skip to content

Commit

Permalink
ci(INJI-564): add app flavor as input to workflow call
Browse files Browse the repository at this point in the history
Signed-off-by: adityankannan-tw <[email protected]>
  • Loading branch information
Adityankannan committed Dec 1, 2023
1 parent 365d724 commit 663c887
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/internal-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
ALLOW_ENV_EDIT: ${{ inputs.allow_env_edit }}
TESTFLIGHT_INTERNAL_TESTERS_GROUP: ${{ inputs.internal-testers }}
SERVICE_LOCATION: '.'
APP_FLAVOR: ${{ inputs.injiFlavor }}
IOS_SERVICE_LOCATION: 'ios'
SCRIPT_NAME: "fastlane beta"
IOS_ARTIFACT_NAME: "Inji Wallet"
Expand Down
12 changes: 6 additions & 6 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PROVISIONING_PROFILE_SPECIFIER = ENV["INJI_IOS_PROVISIONING_PROFILE_SPECIFIER"]
TEMP_KEYCHAIN_USER = ENV["INJI_IOS_TEMP_KEYCHAIN_USER"]
TEMP_KEYCHAIN_PASSWORD = ENV["INJI_IOS_TEMP_KEYCHAIN_PASSWORD"]
GIT_AUTHORIZATION = ENV["GIT_AUTHORIZATION"]
SLACK_URL = ENV["SLACK_URL"]
SLACK_URL = ENV["SLACK_WEBHOOK_URL"]
MATCH_PASSWORD = ENV["MATCH_PASSWORD"]
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT = "120"
TESTFLIGHT_INTERNAL_TESTERS_GROUP = ENV["TESTFLIGHT_INTERNAL_TESTERS_GROUP"]
Expand Down Expand Up @@ -99,7 +99,7 @@ platform :ios do
version = get_version_number(xcodeproj: "Inji.xcodeproj")

previous_build_number = latest_testflight_build_number(
app_identifier: "#{DEVELOPER_APP_IDENTIFIER}",
app_identifier: "#{generate_app_bundle_id}",
api_key: api_key,
version: version
)
Expand All @@ -113,7 +113,7 @@ platform :ios do

match(
type: 'appstore',
app_identifier: "#{DEVELOPER_APP_IDENTIFIER}",
app_identifier: "#{generate_app_bundle_id}",
git_basic_authorization: Base64.strict_encode64("#{GIT_AUTHORIZATION}"),
readonly: false,
keychain_name: keychain_name,
Expand All @@ -137,7 +137,7 @@ platform :ios do
)

pilot(
app_identifier: "#{DEVELOPER_APP_IDENTIFIER}",
app_identifier: "#{generate_app_bundle_id}",
api_key: api_key,
ipa: "./Inji.ipa",
changelog: "#{TESTFLIGHT_BETA_APP_DESCRIPTION}",
Expand All @@ -155,7 +155,7 @@ platform :ios do
delete_temp_keychain(keychain_name)

slack(
message: "Inji - #{version} (#{current_build_number}) is uploaded to testflight.",
message: "#{generate_app_name} #{version} (#{current_build_number}) is uploaded to testflight.",
success: true,
slack_url: "#{SLACK_URL}",
default_payloads: [:git_branch, :last_git_commit]
Expand All @@ -178,7 +178,7 @@ platform :ios do

match(
type: 'appstore',
app_identifier: "#{DEVELOPER_APP_IDENTIFIER}",
app_identifier: "#{generate_app_bundle_id}",
git_basic_authorization: Base64.strict_encode64("#{GIT_AUTHORIZATION}"),
readonly: false,
keychain_name: keychain_name,
Expand Down

0 comments on commit 663c887

Please sign in to comment.