Change back to debug

This commit is contained in:
Nick Cipollo
2020-05-25 17:35:27 -04:00
parent 8954a2e764
commit 05b0499270

View File

@@ -34,6 +34,8 @@ class CoreInputs {
return []; return [];
} }
get body() { get body() {
if (CoreInputs.omitBody())
return undefined;
const body = core.getInput('body'); const body = core.getInput('body');
if (body) { if (body) {
return body; return body;
@@ -44,6 +46,9 @@ class CoreInputs {
} }
return ''; return '';
} }
static omitBody() {
return core.getInput('omitBody') == 'true';
}
get commit() { get commit() {
return core.getInput('commit'); return core.getInput('commit');
} }
@@ -52,12 +57,17 @@ class CoreInputs {
return draft == 'true'; return draft == 'true';
} }
get name() { get name() {
if (CoreInputs.omitName())
return undefined;
const name = core.getInput('name'); const name = core.getInput('name');
if (name) { if (name) {
return name; return name;
} }
return this.tag; return this.tag;
} }
static omitName() {
return core.getInput('omitName') == 'true';
}
get prerelease() { get prerelease() {
const preRelease = core.getInput('prerelease'); const preRelease = core.getInput('prerelease');
return preRelease == 'true'; return preRelease == 'true';