We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef07578 commit a748da6Copy full SHA for a748da6
lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb
@@ -10,10 +10,7 @@ def initialize(params = {})
10
end
11
12
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')
+ return File.read(secrets_repository_file_path) unless self.encrypt || FastlaneCore::Helper.is_ci?
17
return nil unless File.file?(encrypted_file_path)
18
19
encrypted = File.read(encrypted_file_path)
0 commit comments