Skip to content

Commit 38eda93

Browse files
committed
Fail the action on unhandled exceptions
1 parent 69f4277 commit 38eda93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: index.js

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function fetchBranchConfig(branchName) {
6969
console.log(`🎯 Created deployment group '${deploymentGroupName}'`);
7070
core.setOutput('deploymentGroupCreated', true);
7171
} else {
72+
core.setFailed(`🌩 Unhandled exception`);
7273
throw e;
7374
}
7475
}
@@ -112,6 +113,7 @@ function fetchBranchConfig(branchName) {
112113
}
113114
continue;
114115
} else {
116+
core.setFailed(`🌩 Unhandled exception`);
115117
throw e;
116118
}
117119
}

0 commit comments

Comments
 (0)