Exit Code and Status
See original GitHub issueMost probably, I’m missing something, but ESLint and Prettier does not stop workflow and have green checkmark even with errors.
As a result code with lint errors get published.
This is my config:
- name: Run linters
uses: samuelmeuli/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
eslint: true
eslint_extensions: js,jsx,ts,tsx,vue
eslint_args: --max-warnings 0
prettier: true
prettier_extensions: json,less,css,md,gql,graphql,html,yaml
prettier_args: --ignore-path .eslintignore

By the way, this workflow is for push event.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Chapter 6. Exit and Exit Status
Every command returns an exit status (sometimes referred to as a return status or exit code). A successful command returns a 0, while...
Read more >Bash command line exit codes demystified | Enable Sysadmin
An exit code is a system response that reports success, an error, or another condition that provides a clue about what caused an...
Read more >Exit status - Wikipedia
The exit status of a process in computer programming is a small number passed from a child process (or callee) to a parent...
Read more >Bash get exit code of command on a Linux / Unix - nixCraft
Every Linux or Unix command executed by the shell script or user has an exit status. Exit status is an integer number. 0...
Read more >Standard Exit Status Codes in Linux - Baeldung
In Linux, when a process is terminated, it returns an exit code. Upon successful execution, this code is equal to zero. Any non-zero...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@samuelmeuli thanks for the answer. How can I combine results of
ESLintandPrettierand conditionally runReleasestep?Currently I have a workflow similar to below. (Simplified for example purposes)
PS: This is
pushworkflow, notPREdit2: I just wanted to prevent release on push, if lint or test fails.
I looked through the source code and realized that the ESLint and Prettier checks that are created here are actual github Checks. I have no idea if these can be depended on to prevent a job like “Release” from being run.