Skip to content

Commit 7cfef5f

Browse files
committed
fastlane: Check GITHUB_KEYS_REPOSITORY_TOKEN and emptiness also
Signed-off-by: Kristofer Rye <[email protected]>
1 parent 255453d commit 7cfef5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fastlane/lib/util.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def should_beta?
2525

2626
# does the build have the api keys needed for signing?
2727
def api_keys_available?
28-
ENV['MATCH_PASSWORD'] && ENV['FASTLANE_PASSWORD']
28+
ENV['MATCH_PASSWORD'] && !ENV['MATCH_PASSWORD'].empty? &&
29+
ENV['FASTLANE_PASSWORD'] && !ENV['FASTLANE_PASSWORD'].empty? &&
30+
ENV['GITHUB_KEYS_REPOSITORY_TOKEN'] && !ENV['GITHUB_KEYS_REPOSITORY_TOKEN'].empty?
2931
end
3032

3133
# is this a build of a tagged commit?

0 commit comments

Comments
 (0)