🔥 3-day streak
GitHub Actions (GH-200)71 / 142
Question 71 of 142

You are authoring a JavaScript action whose action.yml declares an input named 'api-token' that is marked 'required: true'. Inside index.js you import '@actions/core'. You want to read the value of this input at runtime and automatically fail the action with an error if the caller did not provide it. Which single call best accomplishes this?

Reviewed for accuracy · Report an issueNext question