mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 23:12:55 +08:00
Update debug statement to include latest command
This commit is contained in:
parent
0f91c9c203
commit
6ec51745ad
2
packages/cache/src/internal/cacheUtils.ts
vendored
2
packages/cache/src/internal/cacheUtils.ts
vendored
@ -72,10 +72,10 @@ export async function unlinkFile(filePath: fs.PathLike): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getVersion(app: string, args?: string[]): Promise<string> {
|
async function getVersion(app: string, args?: string[]): Promise<string> {
|
||||||
core.debug(`Checking ${app} --version`)
|
|
||||||
let versionOutput = ''
|
let versionOutput = ''
|
||||||
typeof args !== 'undefined' ? args : (args = [])
|
typeof args !== 'undefined' ? args : (args = [])
|
||||||
args.push('--version')
|
args.push('--version')
|
||||||
|
core.debug(`Checking ${app} ${args.join(' ')}`)
|
||||||
try {
|
try {
|
||||||
await exec.exec(`${app}`, args, {
|
await exec.exec(`${app}`, args, {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user