cloudbuild-task-github-actions
Advanced tools
Comparing version
@@ -41,1 +41,2 @@ "use strict"; | ||
exports.factory = new GitHubFactory(); | ||
//# sourceMappingURL=index.js.map |
@@ -13,3 +13,4 @@ "use strict"; | ||
getInput(name, required) { | ||
return core.getInput(name, { required: required }); | ||
const result = core.getInput(name, { required: required }); | ||
return result === '' ? undefined : result; | ||
} | ||
@@ -22,1 +23,2 @@ getBoolInput(name, required) { | ||
exports.Inputs = Inputs; | ||
//# sourceMappingURL=Inputs.js.map |
@@ -26,1 +26,2 @@ "use strict"; | ||
exports.Logger = Logger; | ||
//# sourceMappingURL=Logger.js.map |
@@ -20,1 +20,2 @@ "use strict"; | ||
exports.Outputs = Outputs; | ||
//# sourceMappingURL=Outputs.js.map |
@@ -13,5 +13,6 @@ "use strict"; | ||
setFailed(message) { | ||
core.setFailed(message); | ||
core.setFailed(message.toString()); | ||
} | ||
} | ||
exports.TaskResult = TaskResult; | ||
//# sourceMappingURL=TaskResult.js.map |
@@ -25,1 +25,2 @@ "use strict"; | ||
exports.Tool = Tool; | ||
//# sourceMappingURL=Tool.js.map |
{ | ||
"name": "cloudbuild-task-github-actions", | ||
"version": "0.1.52-alpha", | ||
"version": "0.1.64-alpha", | ||
"description": "A GitHub Actions adapter for the cloudbuild-task-contracts.", | ||
"main": "lib/index.js", | ||
"engines": { | ||
"node": ">= 6.0" | ||
"node": ">= 10.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
"@octokit/webhooks": "^7.0.0", | ||
"cloudbuild-task-contracts": "0.1.52-alpha" | ||
"cloudbuild-task-contracts": "0.1.64-alpha" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
# cloudbuild-task-github-actions | ||
 | ||
 | ||
 | ||
 | ||
@@ -4,0 +8,0 @@ |
@@ -6,3 +6,4 @@ import * as contracts from 'cloudbuild-task-contracts'; | ||
getInput(name: string, required?: boolean): string | undefined { | ||
return core.getInput(name, { required: required }); | ||
const result = core.getInput(name, { required: required }); | ||
return result === '' ? undefined : result; | ||
} | ||
@@ -9,0 +10,0 @@ |
@@ -6,4 +6,6 @@ import * as contracts from 'cloudbuild-task-contracts'; | ||
setFailed(message: string): void { | ||
core.setFailed(message); | ||
// Just in case folks accidentally send error objects in (which are typically typed as `any`), | ||
// go ahead and render it as a string since GitHub Actions fails if non-strings are passed in. | ||
core.setFailed(message.toString()); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17419
28.58%33
22.22%279
1.45%20
25%+ Added
- Removed