Skip to content

Commit 7b47f72

Browse files
authored
Fix handling validation errors from workflow dispatch
When using unknown workflow dispatch with unknown argument, e.g. `/deploy test=4`, the error message is now: `Unexpected inputs provided: ["test"]`. This PR fixes it, because not the action fails and nothing is set as output.
1 parent 21a075d commit 7b47f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ async function run(): Promise<void> {
194194
const message: string = error.message
195195
// Handle validation errors from workflow dispatch
196196
if (
197-
message == 'Unexpected inputs provided' ||
197+
message.startsWith('Unexpected inputs provided') ||
198198
(message.startsWith('Required input') &&
199199
message.endsWith('not provided')) ||
200200
message.startsWith('No ref found for:') ||

0 commit comments

Comments
 (0)