mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-03-19 23:32:36 +08:00
use zip and unzip from path (#161)
This commit is contained in:
BIN
packages/tool-cache/__tests__/externals/zip
vendored
BIN
packages/tool-cache/__tests__/externals/zip
vendored
Binary file not shown.
BIN
packages/tool-cache/__tests__/externals/zip-darwin
vendored
BIN
packages/tool-cache/__tests__/externals/zip-darwin
vendored
Binary file not shown.
@@ -287,9 +287,7 @@ describe('@actions/tool-cache', function() {
|
||||
]
|
||||
await exec.exec(`"${powershellPath}"`, args)
|
||||
} else {
|
||||
const zipBin: string =
|
||||
process.platform === 'darwin' ? 'zip-darwin' : 'zip'
|
||||
const zipPath: string = path.join(__dirname, 'externals', zipBin)
|
||||
const zipPath: string = await io.which('zip')
|
||||
await exec.exec(`"${zipPath}`, [zipFile, '-r', '.'], {cwd: stagingDir})
|
||||
}
|
||||
|
||||
@@ -340,9 +338,7 @@ describe('@actions/tool-cache', function() {
|
||||
]
|
||||
await exec.exec(`"${powershellPath}"`, args)
|
||||
} else {
|
||||
const zipBin: string =
|
||||
process.platform === 'darwin' ? 'zip-darwin' : 'zip'
|
||||
const zipPath = path.join(__dirname, 'externals', zipBin)
|
||||
const zipPath: string = await io.which('zip')
|
||||
await exec.exec(zipPath, [zipFile, '-r', '.'], {cwd: stagingDir})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user