casey / casey/just

justfile does not preserver the command exit code

Open
#2,328 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

i have the next just file, when I have an error in the dotnet build code, the build returns 1 exit code, yet just files does not return that code to use with GitHub actions in the CI/CD, how can I get the exit code from the dotnet build and use it in the action?

```
null:

clean:
abp clean && dotnet clean && dotnet nuget locals all --clear

build:
export $(grep -v '^#' .env | xargs) && dotnet build -nologo -verbosity:quiet -graph || exit $?
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.