Skip to content

Commit 69f5e03

Browse files
committed
Use get_from_env util method instead of accessing environment var directly
1 parent 0a769a7 commit 69f5e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module GitHelper
1515
# @param [Bool] include_deliverfile If true (the default), includes the `fastlane/Deliverfile` in files being commited
1616
#
1717
def self.commit_version_bump(include_deliverfile: true)
18-
files_list = [File.join(ENV['PROJECT_ROOT_FOLDER'], 'config', '.')]
18+
files_list = [File.join(get_from_env!(key: 'PROJECT_ROOT_FOLDER'), 'config', '.')]
1919
files_list.append File.join('fastlane', 'Deliverfile') if include_deliverfile
2020

2121
Fastlane::Helper::GitHelper.commit(message: 'Bump version number', files: files_list, push: true)

0 commit comments

Comments
 (0)