删除docker buildx version命令测试
All checks were successful
Continuous Integration / GitHub Actions Test (push) Successful in 7s
All checks were successful
Continuous Integration / GitHub Actions Test (push) Successful in 7s
This commit is contained in:
parent
9ad6913340
commit
a9a08c3855
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -3,7 +3,6 @@ import * as cache from '@actions/cache'
|
||||
import os from 'os'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import cp from 'child_process'
|
||||
import { getFileName, download } from './install'
|
||||
|
||||
// const BinDir = '/denv/docker-plugin'
|
||||
@ -57,12 +56,12 @@ export async function run(): Promise<void> {
|
||||
// core.addPath(BinDir)
|
||||
// 测试输出版本
|
||||
// const binPath = await io.which(BinName)
|
||||
const cmd = `docker buildx version`
|
||||
const binVersion = (cp.execSync(`${cmd}`) || '').toString()
|
||||
core.info(`${cmd} version cmd result is: ${binVersion}`)
|
||||
// const cmd = `docker buildx version`
|
||||
// const binVersion = (cp.execSync(`${cmd}`) || '').toString()
|
||||
// core.info(`${cmd} version cmd result is: ${binVersion}`)
|
||||
|
||||
// 设置输出参数
|
||||
core.setOutput('version', binVersion)
|
||||
core.setOutput('version', version)
|
||||
} catch (error) {
|
||||
// Fail the workflow run if an error occurs
|
||||
if (error instanceof Error) core.setFailed(error.message)
|
||||
|
Loading…
Reference in New Issue
Block a user