We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Even when I specify fail_on_error: false the job still fails when there are some eslint errors. It should pass even with errors
fail_on_error: false
name: Verify pull request build on: pull_request: branches: - '*' jobs: lint: name: Run lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '20.9.0' - name: Install dependencies run: npm ci - name: Run eslint on changed files uses: tj-actions/eslint-changed-files@v25 with: config_path: .eslintrc.js skip_annotations: true fail_on_error: false
ubuntu-latest or ubuntu-22.04
To pass the job, even when there are eslint errors
Run tj-actions/eslint-changed-files@v25 with: config_path: .eslintrc.js skip_annotations: true fail_on_error: false token: *** all_files: false file_extensions: **/*.{ts,tsx,js,jsx} level: error reporter: github-pr-review filter_mode: added path: . skip_initial_fetch: false use_rest_api: false escape_paths: true
No response
The text was updated successfully, but these errors were encountered:
Hi @jkasztur, the fail_on_error input sets the "# Exit code for review dog when errors are found." not Eslint which runs when you set skip_annotations to true. See: https://github.com/tj-actions/eslint-changed-files/blob/main/entrypoint.sh#L41
fail_on_error
"# Exit code for review dog when errors are found."
skip_annotations
true
To prevent Eslint reported errors from marking the workflow step as failed you would need to use continue-on-error
continue-on-error
name: Verify pull request build on: pull_request: branches: - '*' jobs: lint: name: Run lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '20.9.0' - name: Install dependencies run: npm ci - name: Run eslint on changed files uses: tj-actions/eslint-changed-files@v25 continue-on-error: true # <-- Add this line with: config_path: .eslintrc.js skip_annotations: true fail_on_error: false
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Even when I specify

fail_on_error: false
the job still fails when there are some eslint errors. It should pass even with errorsTo Reproduce
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
To pass the job, even when there are eslint errors
Relevant log output
Has all relevant logs been included?
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: