diff --git a/dist/setup/index.js b/dist/setup/index.js index 19a5c017..cb1f039f 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96947,14 +96947,14 @@ function cacheDependencies(cache, pythonVersion) { // Copy file asynchronously yield fs_1.default.promises.copyFile(sourcePath, targetPath); core.info(`Copied ${sourcePath} to ${targetPath}`); - resolvedDependencyPath = path - .relative(workspace, targetPath) - .replace(/\\/g, '/'); - core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); } else { core.info(`Dependency file is already inside the workspace: ${sourcePath}`); } + resolvedDependencyPath = path + .relative(workspace, targetPath) + .replace(/\\/g, '/'); + core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); } } catch (error) { diff --git a/src/setup-python.ts b/src/setup-python.ts index ff98008b..106b415a 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -53,18 +53,16 @@ export async function cacheDependencies(cache: string, pythonVersion: string) { // Copy file asynchronously await fs.promises.copyFile(sourcePath, targetPath); core.info(`Copied ${sourcePath} to ${targetPath}`); - - resolvedDependencyPath = path - .relative(workspace, targetPath) - .replace(/\\/g, '/'); - core.info( - `Resolved cache-dependency-path: ${resolvedDependencyPath}` - ); } else { core.info( `Dependency file is already inside the workspace: ${sourcePath}` ); } + + resolvedDependencyPath = path + .relative(workspace, targetPath) + .replace(/\\/g, '/'); + core.info(`Resolved cache-dependency-path: ${resolvedDependencyPath}`); } } catch (error) { core.warning(