Skip to content

Commit

Permalink
fix for manual set branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Feb 20, 2025
1 parent 5589b7f commit 6759f6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34838,7 +34838,7 @@ class Config {
this.input = {
prompt: core.getInput("prompt"),
prerun: core.getInput("prerun"),
branch: core.getInput("branch") || "main",
branch: core.getInput("branch") ,
key: core.getInput("key"),
os: core.getInput("os") || "windows",
version: core.getInput("version") || "latest",
Expand Down Expand Up @@ -41261,7 +41261,7 @@ axios.interceptors.response.use(
const repo = process.env.IS_DEV
? "replayableio/testdriver-action"
: config.githubContext.owner + "/" + config.githubContext.repo;
const branch = process.env.IS_DEV ? "main" : config.githubContext.branch;
const branch = config.input.branch | config.githubContext.branch | "main";

let prerun = config.input.prerun;
let key = config.input.key;
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Config {
this.input = {
prompt: core.getInput("prompt"),
prerun: core.getInput("prerun"),
branch: core.getInput("branch") || "main",
branch: core.getInput("branch") ,
key: core.getInput("key"),
os: core.getInput("os") || "windows",
version: core.getInput("version") || "latest",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ axios.interceptors.response.use(
const repo = process.env.IS_DEV
? "replayableio/testdriver-action"
: config.githubContext.owner + "/" + config.githubContext.repo;
const branch = process.env.IS_DEV ? "main" : config.githubContext.branch;
const branch = config.input.branch | config.githubContext.branch | "main";

let prerun = config.input.prerun;
let key = config.input.key;
Expand Down

0 comments on commit 6759f6c

Please sign in to comment.