diff --git a/cmd/lib/ci_matrix.rb b/cmd/lib/ci_matrix.rb index 381588159b5d2..7186f98837fa9 100644 --- a/cmd/lib/ci_matrix.rb +++ b/cmd/lib/ci_matrix.rb @@ -139,7 +139,7 @@ def self.generate(tap, labels: [], cask_names: [], skip_install: false, new_cask cask_files_to_check = if cask_names.any? cask_names.map do |cask_name| - Cask::CaskLoader.load(cask_name).sourcefile_path.relative_path_from(tap.path) + Cask::CaskLoader.find_cask_in_tap(cask_name, tap).relative_path_from(tap.path) end else changed_files[:modified_cask_files]