From e1b1e32cd10884579fbccd1db4598fa8897ed120 Mon Sep 17 00:00:00 2001 From: Giulio Micheloni Date: Mon, 8 May 2023 21:09:38 +0200 Subject: [PATCH] main: improve log messages --- dist/main/index.js | 6 +++--- main.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index 7d291b2..c62b7cb 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -4388,10 +4388,10 @@ function prepareBuildx() { yield core.group(`Ensure Namespace Builder proxy is already configured`, () => __awaiter(this, void 0, void 0, function* () { const builderExists = yield remoteNscBuilderExists(); if (builderExists) { - core.info(` -GitHub runner is already configured to use Namespace Cloud build cluster.`); + core.info(`GitHub runner is already configured to use Namespace Cloud build cluster.`); return; } + core.info(`Namespace Builder is not yet configured.`); })); const sock = tmpFile("buildkit-proxy.sock"); yield core.group(`Proxy Buildkit from Namespace Cloud`, () => __awaiter(this, void 0, void 0, function* () { @@ -4400,7 +4400,7 @@ GitHub runner is already configured to use Namespace Cloud build cluster.`); yield exec.exec(`docker buildx create --name ${nscRemoteBuilderName} --driver remote unix://${sock} --use`); })); yield core.group(`Builder`, () => __awaiter(this, void 0, void 0, function* () { - core.info("remote-nsc"); + core.info(nscRemoteBuilderName); })); // New line to separate from groups. core.info(` diff --git a/main.ts b/main.ts index a334ecc..40620ec 100644 --- a/main.ts +++ b/main.ts @@ -24,10 +24,10 @@ async function prepareBuildx(): Promise { await core.group(`Ensure Namespace Builder proxy is already configured`, async () => { const builderExists = await remoteNscBuilderExists(); if (builderExists) { - core.info(` -GitHub runner is already configured to use Namespace Cloud build cluster.`); + core.info(`GitHub runner is already configured to use Namespace Cloud build cluster.`); return; } + core.info(`Namespace Builder is not yet configured.`); }); const sock = tmpFile("buildkit-proxy.sock"); @@ -45,7 +45,7 @@ GitHub runner is already configured to use Namespace Cloud build cluster.`); }); await core.group(`Builder`, async () => { - core.info("remote-nsc"); + core.info(nscRemoteBuilderName); }); // New line to separate from groups.