Exit early when a required argument is not received
Some checks failed
/ Tests that the action works as expected (push) Failing after 13s
Some checks failed
/ Tests that the action works as expected (push) Failing after 13s
This commit is contained in:
parent
1414306012
commit
4482ee6fdc
2
index.js
2
index.js
@ -10,10 +10,12 @@ try {
|
|||||||
const file = core.getInput('file')
|
const file = core.getInput('file')
|
||||||
if (!file) {
|
if (!file) {
|
||||||
core.setFailed('"file" is required')
|
core.setFailed('"file" is required')
|
||||||
|
process.exit(1)
|
||||||
}
|
}
|
||||||
const token = core.getInput('token')
|
const token = core.getInput('token')
|
||||||
if (!token) {
|
if (!token) {
|
||||||
core.setFailed('"token" is required')
|
core.setFailed('"token" is required')
|
||||||
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const machine_name = core.getInput('custom-machine-name') || os.hostname()
|
const machine_name = core.getInput('custom-machine-name') || os.hostname()
|
||||||
|
Loading…
Reference in New Issue
Block a user