Skip to content

Commit

Permalink
use default keychain name if none is given
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed May 21, 2024
1 parent 8b51893 commit 84e9849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions authpass/macos/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
default_platform(:mac)

keychain_password = SecureRandom.base64
keychain_name = ENV["MATCH_KEYCHAIN_NAME"] || "authpasskeychain"

platform :mac do
desc "Description of what the lane does"
Expand All @@ -31,7 +32,7 @@ platform :mac do

# https://docs.travis-ci.com/user/common-build-problems/#fastlane
create_keychain(
name: ENV["MATCH_KEYCHAIN_NAME"],
name: keychain_name,
password: keychain_password,
default_keychain: false,
unlock: true,
Expand All @@ -41,7 +42,7 @@ platform :mac do

match(
type: "appstore",
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
keychain_name: keychain_name,
keychain_password: keychain_password,
additional_cert_types: "mac_installer_distribution",
readonly: true
Expand Down

0 comments on commit 84e9849

Please sign in to comment.