mirror of
https://github.com/actions/setup-go.git
synced 2025-08-14 20:55:10 +00:00
export findDependencyFile
It is needed to enable cache
This commit is contained in:
parent
72e3f80a4a
commit
03f925ed17
@ -47,7 +47,7 @@ export const restoreCache = async (
|
|||||||
core.info(`Cache restored from key: ${cacheKey}`);
|
core.info(`Cache restored from key: ${cacheKey}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const findDependencyFile = (packageManager: PackageManagerInfo) => {
|
export const findDependencyFile = (packageManager: PackageManagerInfo) => {
|
||||||
let dependencyFile = packageManager.dependencyFilePattern;
|
let dependencyFile = packageManager.dependencyFilePattern;
|
||||||
const workspace = process.env.GITHUB_WORKSPACE!;
|
const workspace = process.env.GITHUB_WORKSPACE!;
|
||||||
const rootContent = fs.readdirSync(workspace);
|
const rootContent = fs.readdirSync(workspace);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user