Skip to content

Commit bfcb3f2

Browse files
committed
log
1 parent 3b140cd commit bfcb3f2

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

app/fastlane/Fastfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ end
1515

1616
# Store a secret to the keychain if it is not already stored or if it has changed.
1717
def store_secret_to_keychain(key, value)
18-
return if ENV['CI']
18+
return true if ENV['CI']
1919
encoded_value = Base64.strict_encode64(value)
2020
existing_encoded = `security find-generic-password -s 'dev.getcmd.#{key}' -w 2>/dev/null`.strip
21-
return if existing_encoded == encoded_value
21+
return true if existing_encoded == encoded_value
2222

2323
sh("security add-generic-password -a '#{ENV['USER']}' -s 'dev.getcmd.#{key}' -w '#{encoded_value}' -U")
2424
end
@@ -47,6 +47,20 @@ platform :mac do
4747
# The fine grained token should have permissions for: Contents, Metadata (maybe also commit statuses and pull requests)
4848
# I could not find how to pass it in the header. It is in the git URL. If it is not set, like when running locally and saving new certificates, we need to use the SSH URL.
4949
git_url = readonly ? "https://gsabran:#{personal_github_access_token}@github.com/gsabran/command-provisioning-profiles.git" : "git@github.com:gsabran/command-provisioning-profiles.git"
50+
puts "Using git_url: #{git_url}"
51+
# only the beginning / end of personal_github_access_token
52+
puts "CI? #{ENV['CI']}"
53+
if ENV['CI']
54+
puts "CI on"
55+
else
56+
puts "CI off"
57+
end
58+
puts "has FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN? #{ENV['FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN'].nil? ? 'no' : 'yes'}"
59+
puts "has personal_github_access_token? #{personal_github_access_token.nil? ? 'no' : 'yes'}"
60+
61+
puts "Using FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN: #{ENV['FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN'][0..5]}...#{ENV['FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN'][-5..-1]}" if ENV['FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN']
62+
63+
puts "Using personal_github_access_token: #{personal_github_access_token[0..5]}...#{personal_github_access_token[-5..-1]}"
5064
match(
5165
type: 'appstore',
5266
readonly: readonly,

0 commit comments

Comments
 (0)