We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8968f7d + 4d015e7 commit 154b75dCopy full SHA for 154b75d
2 files changed
.gitignore
@@ -1,3 +1,4 @@
1
__tests__/runner/*
2
node_modules
3
package-lock.json
4
+lib
src/main.ts
@@ -11,7 +11,11 @@ async function run() {
11
12
await webhook.send(payload);
13
} catch (error) {
14
- core.setFailed(error.message);
+ if(error instanceof Error) {
15
+ core.setFailed(error.message);
16
+ } else {
17
+ core.setFailed("Unexpected error");
18
+ }
19
}
20
21
0 commit comments