From 6759f6c42c5e6040be100a17680780894c08bc85 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Wed, 19 Feb 2025 19:43:39 -0600 Subject: [PATCH] fix for manual set branch --- dist/index.js | 4 ++-- src/config.js | 2 +- src/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index e98ae79..98222e1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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", @@ -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; diff --git a/src/config.js b/src/config.js index 88cafc5..020f6a1 100644 --- a/src/config.js +++ b/src/config.js @@ -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", diff --git a/src/index.js b/src/index.js index 5cf118d..0291078 100644 --- a/src/index.js +++ b/src/index.js @@ -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;