Exit early when a required argument is not received
Some checks failed
/ Tests that the action works as expected (push) Failing after 13s

This commit is contained in:
Kodi Craft 2024-06-15 11:48:28 +02:00
parent 1414306012
commit 4482ee6fdc
Signed by: kodi
GPG Key ID: 69D9EED60B242822

View File

@ -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()