修改docker文件拷贝bug
Continuous Integration / GitHub Actions Test (push) Successful in 32s
Details
Continuous Integration / GitHub Actions Test (push) Successful in 32s
Details
This commit is contained in:
parent
5659b7f144
commit
1cecff20cc
|
@ -80813,10 +80813,11 @@ async function run() {
|
||||||
if (!filepath) {
|
if (!filepath) {
|
||||||
throw new Error(`Failed to download`);
|
throw new Error(`Failed to download`);
|
||||||
}
|
}
|
||||||
const dockerexec = path_1.default.join(filepath, 'docker');
|
const dockerexecPath = path_1.default.join(filepath, 'docker');
|
||||||
core.info(`copy file from ${dockerexec} to ${BinDir}`);
|
const binPath = path_1.default.join(BinDir, BinName);
|
||||||
fs_1.default.copyFileSync(dockerexec, BinDir);
|
core.info(`copy file from ${dockerexecPath} to ${binPath}`);
|
||||||
core.info(`Success Installed to ${BinDir}`);
|
fs_1.default.copyFileSync(dockerexecPath, binPath);
|
||||||
|
core.info(`Success Installed to ${binPath}`);
|
||||||
// 保存到缓存
|
// 保存到缓存
|
||||||
await cache.saveCache([BinDir], ck);
|
await cache.saveCache([BinDir], ck);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -34,10 +34,11 @@ export async function run(): Promise<void> {
|
||||||
if (!filepath) {
|
if (!filepath) {
|
||||||
throw new Error(`Failed to download`)
|
throw new Error(`Failed to download`)
|
||||||
}
|
}
|
||||||
const dockerexec = path.join(filepath, 'docker')
|
const dockerexecPath = path.join(filepath, 'docker')
|
||||||
core.info(`copy file from ${dockerexec} to ${BinDir}`)
|
const binPath = path.join(BinDir, BinName)
|
||||||
fs.copyFileSync(dockerexec, BinDir)
|
core.info(`copy file from ${dockerexecPath} to ${binPath}`)
|
||||||
core.info(`Success Installed to ${BinDir}`)
|
fs.copyFileSync(dockerexecPath, binPath)
|
||||||
|
core.info(`Success Installed to ${binPath}`)
|
||||||
// 保存到缓存
|
// 保存到缓存
|
||||||
await cache.saveCache([BinDir], ck)
|
await cache.saveCache([BinDir], ck)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue