Skip to content

Commit

Permalink
Fix remaining issues with cml runner
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Aug 31, 2021
1 parent 8cfb406 commit 8de7c23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/cml/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const shutdown = async (opts) => {
};

if (error) winston.error(error);
winston.info(
console.log(
JSON.stringify({
level: error ? 'error' : 'info',
status: 'terminated',
Expand Down Expand Up @@ -451,7 +451,8 @@ exports.builder = (yargs) =>
'repo',
'Repository to be used for registering the runner. If not specified, it will be inferred from the environment'
)
.default('token', REPO_TOKEN)
.default('token', 'infer')
.coerce('token', (val) => (val === 'infer' ? REPO_TOKEN : val))
.describe(
'token',
'Personal access token to register a self-hosted runner on the repository. If not specified, it will be inferred from the environment'
Expand Down
1 change: 1 addition & 0 deletions bin/cml/runner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Options:
--token Personal access token to register a self-hosted
runner on the repository. If not specified, it
will be inferred from the environment
[default: \\"infer\\"]
--cloud Cloud to deploy the runner
[choices: \\"aws\\", \\"azure\\", \\"gcp\\", \\"kubernetes\\"]
--cloud-region Region where the instance is deployed. Choices:
Expand Down

0 comments on commit 8de7c23

Please sign in to comment.