From 3d40197453b13c4d45e2f7485a4fe1b96b103f3d Mon Sep 17 00:00:00 2001 From: Abe Winter Date: Fri, 15 Dec 2023 00:04:52 -0500 Subject: [PATCH] no ref yet, use latest --- dist/index.js | 9 +++++---- src/index.js | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 91539f2..d755770 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26192,7 +26192,7 @@ const argsConfig = { options: { "skip-download": { type: 'boolean' }, "skip-login": { type: 'boolean' }, - "cli-channel": { type: 'string', default: 'stable' }, + "cli-channel": { type: 'string', default: 'latest' }, }, }; const uuidRegex = /^[\dabcdef\-]+$/; @@ -26273,11 +26273,12 @@ function parseBuildId(stdout) { if (!args.values['skip-login']) { checkSpawnSync(spawnSync(cliPath, ['login', 'api-key', '--key-id', inputs.keyId, '--key', inputs.keyValue])); } - console.log('I will run with', { + const config = { ref: inputs.ref || '', version: inputs.version || '', - }); - const startArgs = ['module', 'build', 'start', '--version', inputs.version || '']; + } + console.log('I will run with', config); + const startArgs = ['module', 'build', 'start', '--version', config.version]; // , '--ref', config.ref]; const spawnRet = spawnSync(cliPath, startArgs); checkSpawnSync(spawnRet); const buildId = parseBuildId(spawnRet.stdout); diff --git a/src/index.js b/src/index.js index d3414dd..7f1167e 100644 --- a/src/index.js +++ b/src/index.js @@ -18,7 +18,7 @@ const argsConfig = { options: { "skip-download": { type: 'boolean' }, "skip-login": { type: 'boolean' }, - "cli-channel": { type: 'string', default: 'stable' }, + "cli-channel": { type: 'string', default: 'latest' }, }, }; const uuidRegex = /^[\dabcdef\-]+$/; @@ -104,7 +104,7 @@ function parseBuildId(stdout) { version: inputs.version || '', } console.log('I will run with', config); - const startArgs = ['module', 'build', 'start', '--version', config.version, '--ref', config.ref]; + const startArgs = ['module', 'build', 'start', '--version', config.version]; // , '--ref', config.ref]; const spawnRet = spawnSync(cliPath, startArgs); checkSpawnSync(spawnRet); const buildId = parseBuildId(spawnRet.stdout);