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.
This commit is contained in:
Lukáš Moravec
2021-07-21 21:09:28 +02:00
committed by GitHub
parent 21a075dfa7
commit 7b47f72e5a
+1 -1
View File
@@ -194,7 +194,7 @@ async function run(): Promise<void> {
const message: string = error.message
// Handle validation errors from workflow dispatch
if (
message == 'Unexpected inputs provided' ||
message.startsWith('Unexpected inputs provided') ||
(message.startsWith('Required input') &&
message.endsWith('not provided')) ||
message.startsWith('No ref found for:') ||