Skip to content

Commit

Permalink
no ref yet, use latest
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Dec 15, 2023
1 parent 267c6e2 commit 3d40197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\-]+$/;
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\-]+$/;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3d40197

Please sign in to comment.