From 6058310e9c454ef09bad31e1d23d39f9ffed7510 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 17 Dec 2021 13:37:56 +0100 Subject: [PATCH] Display buildx version Signed-off-by: CrazyMax --- dist/index.js | 6 ++++++ src/main.ts | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/dist/index.js b/dist/index.js index e5208bae..ee4aefc1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -668,6 +668,12 @@ function run() { core.endGroup(); } const buildxVersion = yield buildx.getVersion(inputs.standalone); + yield core.group(`Buildx version`, () => __awaiter(this, void 0, void 0, function* () { + const versionCmd = buildx.getCommand(['version'], inputs.standalone); + yield exec.exec(versionCmd.commandLine, versionCmd.args, { + failOnStdErr: false + }); + })); const builderName = inputs.driver == 'docker' ? 'default' : `builder-${__nccwpck_require__(5840).v4()}`; context.setOutput('name', builderName); stateHelper.setBuilderName(builderName); diff --git a/src/main.ts b/src/main.ts index 1a14bc2e..9548ba00 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,6 +6,7 @@ import * as stateHelper from './state-helper'; import * as util from './util'; import * as core from '@actions/core'; import * as exec from '@actions/exec'; +import {parseVersion} from './buildx'; async function run(): Promise { try { @@ -37,6 +38,13 @@ async function run(): Promise { } const buildxVersion = await buildx.getVersion(inputs.standalone); + await core.group(`Buildx version`, async () => { + const versionCmd = buildx.getCommand(['version'], inputs.standalone); + await exec.exec(versionCmd.commandLine, versionCmd.args, { + failOnStdErr: false + }); + }); + const builderName: string = inputs.driver == 'docker' ? 'default' : `builder-${require('uuid').v4()}`; context.setOutput('name', builderName); stateHelper.setBuilderName(builderName);