🔥 3-day streak
GitHub Actions (GH-200)70 / 142
Question 70 of 142
You maintain a JavaScript action that validates a configuration file passed as an input. When validation fails, the action currently logs an error with console.error() and continues, but the workflow step still reports success and downstream steps run against invalid config. You need the step to be marked as failed and halt the job (assuming default continue-on-error). Using the @actions/core toolkit, what is the correct way to signal failure from the action code?
Reviewed for accuracy · Report an issueNext question