Skip to content

Commit 6759f6c

Browse files
committed
fix for manual set branch
1 parent 5589b7f commit 6759f6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34838,7 +34838,7 @@ class Config {
3483834838
this.input = {
3483934839
prompt: core.getInput("prompt"),
3484034840
prerun: core.getInput("prerun"),
34841-
branch: core.getInput("branch") || "main",
34841+
branch: core.getInput("branch") ,
3484234842
key: core.getInput("key"),
3484334843
os: core.getInput("os") || "windows",
3484434844
version: core.getInput("version") || "latest",
@@ -41261,7 +41261,7 @@ axios.interceptors.response.use(
4126141261
const repo = process.env.IS_DEV
4126241262
? "replayableio/testdriver-action"
4126341263
: config.githubContext.owner + "/" + config.githubContext.repo;
41264-
const branch = process.env.IS_DEV ? "main" : config.githubContext.branch;
41264+
const branch = config.input.branch | config.githubContext.branch | "main";
4126541265

4126641266
let prerun = config.input.prerun;
4126741267
let key = config.input.key;

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Config {
1414
this.input = {
1515
prompt: core.getInput("prompt"),
1616
prerun: core.getInput("prerun"),
17-
branch: core.getInput("branch") || "main",
17+
branch: core.getInput("branch") ,
1818
key: core.getInput("key"),
1919
os: core.getInput("os") || "windows",
2020
version: core.getInput("version") || "latest",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ axios.interceptors.response.use(
6666
const repo = process.env.IS_DEV
6767
? "replayableio/testdriver-action"
6868
: config.githubContext.owner + "/" + config.githubContext.repo;
69-
const branch = process.env.IS_DEV ? "main" : config.githubContext.branch;
69+
const branch = config.input.branch | config.githubContext.branch | "main";
7070

7171
let prerun = config.input.prerun;
7272
let key = config.input.key;

0 commit comments

Comments
 (0)