From 1063c681dc5a1110eb199bcefc1d8a94af9933d0 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 5 Nov 2025 02:04:46 +0100 Subject: [PATCH] chore: generate --- dist/post_run/index.js | 13 +++++++++++-- dist/run/index.js | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 69d587d..b58793d 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -97343,11 +97343,14 @@ const cache_1 = __nccwpck_require__(7377); const install_1 = __nccwpck_require__(232); const patch_1 = __nccwpck_require__(7161); const execShellCommand = (0, util_1.promisify)(child_process_1.exec); -async function prepareEnv() { +async function prepareEnv(installOnly) { const startedAt = Date.now(); // Prepare cache, lint and go in parallel. await (0, cache_1.restoreCache)(); const binPath = await (0, install_1.install)(); + if (installOnly) { + return { binPath, patchPath: `` }; + } const patchPath = await (0, patch_1.fetchPatch)(); core.info(`Prepared env in ${Date.now() - startedAt}ms`); return { binPath, patchPath }; @@ -97483,8 +97486,14 @@ async function getConfigPath(binPath, userArgsMap, cmdArgs) { } async function run() { try { - const { binPath, patchPath } = await core.group(`prepare environment`, prepareEnv); + const installOnly = core.getBooleanInput(`install-only`, { required: true }); + const { binPath, patchPath } = await core.group(`prepare environment`, () => { + return prepareEnv(installOnly); + }); core.addPath(path.dirname(binPath)); + if (installOnly) { + return; + } await core.group(`run golangci-lint`, () => runLint(binPath, patchPath)); } catch (error) { diff --git a/dist/run/index.js b/dist/run/index.js index 8e1918e..77757fb 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -97343,11 +97343,14 @@ const cache_1 = __nccwpck_require__(7377); const install_1 = __nccwpck_require__(232); const patch_1 = __nccwpck_require__(7161); const execShellCommand = (0, util_1.promisify)(child_process_1.exec); -async function prepareEnv() { +async function prepareEnv(installOnly) { const startedAt = Date.now(); // Prepare cache, lint and go in parallel. await (0, cache_1.restoreCache)(); const binPath = await (0, install_1.install)(); + if (installOnly) { + return { binPath, patchPath: `` }; + } const patchPath = await (0, patch_1.fetchPatch)(); core.info(`Prepared env in ${Date.now() - startedAt}ms`); return { binPath, patchPath }; @@ -97483,8 +97486,14 @@ async function getConfigPath(binPath, userArgsMap, cmdArgs) { } async function run() { try { - const { binPath, patchPath } = await core.group(`prepare environment`, prepareEnv); + const installOnly = core.getBooleanInput(`install-only`, { required: true }); + const { binPath, patchPath } = await core.group(`prepare environment`, () => { + return prepareEnv(installOnly); + }); core.addPath(path.dirname(binPath)); + if (installOnly) { + return; + } await core.group(`run golangci-lint`, () => runLint(binPath, patchPath)); } catch (error) {