Skip to content

exec.exec() and core.setFailed() do not fail build #737

@fniephaus

Description

@fniephaus

Our setup-smalltalkCI action installs some dependencies via apt-get using the following expression:

await exec.exec('sudo apt-get update')

Even though the outer run function contains a try-catch block that calls core.setFailed() in case of errors, the build does not fail there (see here).

How can we make sure that builds fail early, so that our users are not confused by later errors that come, for example, from a failing apt-get?

Related issue: #390

/cc @tom95

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions