修改docker文件拷贝bug
Continuous Integration / GitHub Actions Test (push) Successful in 32s Details

This commit is contained in:
walker 2024-03-18 10:45:56 +08:00
parent 5659b7f144
commit 1cecff20cc
3 changed files with 11 additions and 9 deletions

9
dist/index.js vendored
View File

@ -80813,10 +80813,11 @@ async function run() {
if (!filepath) {
throw new Error(`Failed to download`);
}
const dockerexec = path_1.default.join(filepath, 'docker');
core.info(`copy file from ${dockerexec} to ${BinDir}`);
fs_1.default.copyFileSync(dockerexec, BinDir);
core.info(`Success Installed to ${BinDir}`);
const dockerexecPath = path_1.default.join(filepath, 'docker');
const binPath = path_1.default.join(BinDir, BinName);
core.info(`copy file from ${dockerexecPath} to ${binPath}`);
fs_1.default.copyFileSync(dockerexecPath, binPath);
core.info(`Success Installed to ${binPath}`);
// 保存到缓存
await cache.saveCache([BinDir], ck);
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -34,10 +34,11 @@ export async function run(): Promise<void> {
if (!filepath) {
throw new Error(`Failed to download`)
}
const dockerexec = path.join(filepath, 'docker')
core.info(`copy file from ${dockerexec} to ${BinDir}`)
fs.copyFileSync(dockerexec, BinDir)
core.info(`Success Installed to ${BinDir}`)
const dockerexecPath = path.join(filepath, 'docker')
const binPath = path.join(BinDir, BinName)
core.info(`copy file from ${dockerexecPath} to ${binPath}`)
fs.copyFileSync(dockerexecPath, binPath)
core.info(`Success Installed to ${binPath}`)
// 保存到缓存
await cache.saveCache([BinDir], ck)
}