diff --git a/CHANGELOG.md b/CHANGELOG.md index 379cd1cb8..5dbd7fd08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ _None_ ### Bug Fixes -_None_ +- Fix `NoMethodError` (`undefined method 'trigger_action_by_name' for nil:NilClass`) when running `configure_setup`. [#670] ### Internal Changes diff --git a/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb b/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb index a06e4d8a3..8394204a4 100644 --- a/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb +++ b/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb @@ -42,14 +42,14 @@ def self.prepare_repository original_repo_ref = Fastlane::Helper::ConfigureHelper.repo_branch_name original_repo_ref = repo_hash if original_repo_ref.nil? - other_action.sh(command: "cd #{repository_path} && git fetch && git checkout #{file_hash}", log: false) unless repo_hash == file_hash + Actions.sh("cd #{repository_path} && git fetch && git checkout #{file_hash}", log: false) unless repo_hash == file_hash # Run the provided block yield ### Restore secrets repo to original branch. If it was originally in a ### detached HEAD state, we need to use the hash since there's no branch name. - other_action.sh(command: "cd #{repository_path} && git checkout #{original_repo_ref}", log: false) + Actions.sh("cd #{repository_path} && git checkout #{original_repo_ref}", log: false) end ### Check with the user whether we should overwrite the file, if it exists