Skip to content

Commit a748da6

Browse files
committed
Remove custom check for CI in favor of using Fastlane's one
1 parent ef07578 commit a748da6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ def initialize(params = {})
1010
end
1111

1212
def source_contents
13-
# TODO: This works only on CircleCI. I chose this variable because it's the one checked by Fastlane::is_ci.
14-
# Fastlane::is_ci doesn't work here, so reimplementing the code has been necessary.
15-
# (This should be updated if we change CI or if fastlane is updated.)
16-
return File.read(secrets_repository_file_path) unless self.encrypt || ENV.key?('CIRCLECI')
13+
return File.read(secrets_repository_file_path) unless self.encrypt || FastlaneCore::Helper.is_ci?
1714
return nil unless File.file?(encrypted_file_path)
1815

1916
encrypted = File.read(encrypted_file_path)

0 commit comments

Comments
 (0)