修改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 generated vendored
View File

@ -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);
} }

2
dist/index.js.map generated 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) { 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)
} }