This commit is contained in:
@@ -32,6 +32,16 @@ def release_version
|
||||
end
|
||||
|
||||
def ci_login_keychain_path
|
||||
candidates = [
|
||||
"/private/var/lib/act_runner/Library/Keychains/login.keychain-db",
|
||||
"/var/lib/act_runner/Library/Keychains/login.keychain-db",
|
||||
"/Users/runner/Library/Keychains/login.keychain-db",
|
||||
File.expand_path("~/Library/Keychains/login.keychain-db"),
|
||||
File.expand_path("~/Library/Keychains/login.keychain")
|
||||
]
|
||||
existing_candidate = candidates.find { |path| File.file?(path) }
|
||||
return existing_candidate if existing_candidate
|
||||
|
||||
keychains = sh("security list-keychains -d user", log: false).shellsplit
|
||||
keychains.find { |path| File.basename(path).start_with?("login.keychain") } || keychains.first || "login.keychain"
|
||||
end
|
||||
@@ -51,6 +61,7 @@ platform :ios do
|
||||
|
||||
ENV["MATCH_KEYCHAIN_NAME"] = ci_login_keychain_path
|
||||
ENV.delete("MATCH_KEYCHAIN_PASSWORD")
|
||||
sh("security list-keychains -d user -s #{ENV.fetch("MATCH_KEYCHAIN_NAME").shellescape}", log: false)
|
||||
cleanup_ci_signing_identity
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user