diff --git a/src/action-ros-ci.ts b/src/action-ros-ci.ts index b84eb98c..bf9682ee 100644 --- a/src/action-ros-ci.ts +++ b/src/action-ros-ci.ts @@ -650,7 +650,9 @@ done`; // Print HEAD commits of all repos await execShellCommand(["vcs log -l1 src/"], options); - if (isLinux) { + // rosdep does not really work on Windows, so do not use it + // See: https://github.com/ros-infrastructure/rosdep/issues/610 + if (!isWindows && !skipRosdepInstall) { // Always update package index before installing packages const dist: string = await determineDistrib(); if (dist === "ubuntu") { @@ -662,10 +664,7 @@ done`; } else { core.setFailed(`Unsupported distribution ${dist}`); } - } - // rosdep does not really work on Windows, so do not use it - // See: https://github.com/ros-infrastructure/rosdep/issues/610 - if (!isWindows && !skipRosdepInstall) { + await installRosdeps( buildPackageSelection, rosdepSkipKeysSelection,