fix js errors

This commit is contained in:
David Hiendl 2023-12-02 17:59:50 +01:00
parent d0bbd8a4f6
commit f9c679304b
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -31137,7 +31137,7 @@ function gather_information(debug = false, output = false) {
if (debug) console.log("baseRef=" + baseRef); if (debug) console.log("baseRef=" + baseRef);
if (debug) console.log("headRef=" + headRef); if (debug) console.log("headRef=" + headRef);
// TODO support PR data // TODO support PR data
} else if (!git_is_tag) { } else if (!r.git_is_tag) {
// regular branches // regular branches
r.git_is_branch = true; r.git_is_branch = true;
} }
@ -31169,7 +31169,7 @@ function gather_information(debug = false, output = false) {
r.semver_build = parsed.build; r.semver_build = parsed.build;
r.semver_pre = parsed.pre; r.semver_pre = parsed.pre;
} }
} else if (git_is_branch) { } else if (r.git_is_branch) {
const parsed = parseSemVer(r.git_current_branch); const parsed = parseSemVer(r.git_current_branch);
if (debug) console.log("semver=" + JSON.stringify(parsed)); if (debug) console.log("semver=" + JSON.stringify(parsed));

View File

@ -51,7 +51,7 @@ export function gather_information(debug = false, output = false) {
if (debug) console.log("baseRef=" + baseRef); if (debug) console.log("baseRef=" + baseRef);
if (debug) console.log("headRef=" + headRef); if (debug) console.log("headRef=" + headRef);
// TODO support PR data // TODO support PR data
} else if (!git_is_tag) { } else if (!r.git_is_tag) {
// regular branches // regular branches
r.git_is_branch = true; r.git_is_branch = true;
} }
@ -83,7 +83,7 @@ export function gather_information(debug = false, output = false) {
r.semver_build = parsed.build; r.semver_build = parsed.build;
r.semver_pre = parsed.pre; r.semver_pre = parsed.pre;
} }
} else if (git_is_branch) { } else if (r.git_is_branch) {
const parsed = semverParser.parseSemVer(r.git_current_branch); const parsed = semverParser.parseSemVer(r.git_current_branch);
if (debug) console.log("semver=" + JSON.stringify(parsed)); if (debug) console.log("semver=" + JSON.stringify(parsed));