Fix: read git branch from project path git repo

pull/419/head
Frostebite 2022-08-11 05:08:39 +01:00
parent 24b1c3dbbd
commit 7e91f32726
3 changed files with 6 additions and 3 deletions

3
dist/index.js vendored
View File

@ -713,7 +713,8 @@ class CloudRunnerOptions {
return CloudRunnerOptions.getInput(`cloudRunnerTests`) || false;
}
static get watchCloudRunnerToEnd() {
return CloudRunnerOptions.getInput(`watchToEnd`) !== 'false' || true;
const input = CloudRunnerOptions.getInput(`watchToEnd`);
return input && input === 'true';
}
static ToEnvVarFormat(input) {
if (input.toUpperCase() === input) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -158,7 +158,9 @@ class CloudRunnerOptions {
}
static get watchCloudRunnerToEnd(): boolean {
return CloudRunnerOptions.getInput(`watchToEnd`) !== 'false' || true;
const input = CloudRunnerOptions.getInput(`watchToEnd`);
return input && input === 'true';
}
public static ToEnvVarFormat(input: string) {