Refactor: Pull out generic tool invocation functionality
This commit is contained in:
parent
cf5b0a9041
commit
1aa7f6f05d
15 changed files with 256 additions and 177 deletions
2
lib/resolve-environment-action.js
generated
2
lib/resolve-environment-action.js
generated
|
|
@ -55,7 +55,7 @@ async function run() {
|
|||
}
|
||||
catch (unwrappedError) {
|
||||
const error = (0, util_1.wrapError)(unwrappedError);
|
||||
if (error instanceof cli_errors_1.CommandInvocationError) {
|
||||
if (error instanceof cli_errors_1.CliError) {
|
||||
// If the CLI failed to run successfully for whatever reason,
|
||||
// we just return an empty JSON object and proceed with the workflow.
|
||||
core.setOutput(ENVIRONMENT_OUTPUT_NAME, {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue