From 4482ee6fdc3c6c362cfd9c60282b206ce439001a Mon Sep 17 00:00:00 2001 From: Kodi Craft Date: Sat, 15 Jun 2024 11:48:28 +0200 Subject: [PATCH] Exit early when a required argument is not received --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index b8e6b00..e3bcf29 100644 --- a/index.js +++ b/index.js @@ -10,10 +10,12 @@ try { const file = core.getInput('file') if (!file) { core.setFailed('"file" is required') + process.exit(1) } const token = core.getInput('token') if (!token) { core.setFailed('"token" is required') + process.exit(1) } const machine_name = core.getInput('custom-machine-name') || os.hostname()