Skip to content

Commit

Permalink
accept api key as an arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed May 21, 2024
1 parent 461c5ed commit 567be6b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
description: >-
The TestDriver version to run. Default 1.0.0
required: false
key:
description: >-
Your Dashcam API key
required: false
outputs:
summary:
description: >-
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33639,6 +33639,7 @@ class Config {
prerun: core.getInput("prerun"),
gh_token: core.getInput("gh_token"),
version: core.getInput("version"),
key: core.getInput("key"),
};

// the values of github.context.repo.owner and github.context.repo.repo are taken from
Expand Down Expand Up @@ -39986,6 +39987,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));

let prerun = config.input.prerun;
let version = config.input.version;
let key = config.input.key;

console.log(chalk.green("TestDriver:"), `"Version ${version}"`);

Expand Down Expand Up @@ -40014,6 +40016,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));
prompt,
prerun,
version,
key,
personalAccessToken,
},
{
Expand Down Expand Up @@ -40143,7 +40146,6 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));
core.setOutput("markdown", shareLink);

await core.summary

.addHeading("TestDriver.ai Results")
.addLink("View Dashcam.io Recording!", extractedFromMarkdown)
.addHeading("Summary")
Expand Down
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Config {
prerun: core.getInput("prerun"),
gh_token: core.getInput("gh_token"),
version: core.getInput("version"),
key: core.getInput("key"),
};

// the values of github.context.repo.owner and github.context.repo.repo are taken from
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));

let prerun = config.input.prerun;
let version = config.input.version;
let key = config.input.key;

console.log(chalk.green("TestDriver:"), `"Version ${version}"`);

Expand Down Expand Up @@ -58,6 +59,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));
prompt,
prerun,
version,
key,
personalAccessToken,
},
{
Expand Down Expand Up @@ -187,7 +189,6 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms));
core.setOutput("markdown", shareLink);

await core.summary

.addHeading("TestDriver.ai Results")
.addLink("View Dashcam.io Recording!", extractedFromMarkdown)
.addHeading("Summary")
Expand Down

0 comments on commit 567be6b

Please sign in to comment.