Просмотр исходного кода

build(ci): Fix eslint for backend changes (#26039)

Regressed due to https://github.com/getsentry/sentry/pull/25973 - fixes eslint being run when no frontend files were changed.
Billy Vong 3 лет назад
Родитель
Сommit
ae13e3046b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .github/workflows/js-build-and-lint.yml

+ 1 - 1
.github/workflows/js-build-and-lint.yml

@@ -80,7 +80,7 @@ jobs:
       # Otherwise... only lint modified files
       # Note `eslint --fix` will not fail when it auto fixes files
       - name: eslint (changed files only)
-        if: steps.eslint.outputs.all-files != 'true'
+        if: steps.changes.outputs.frontend == 'true' && steps.eslint.outputs.all-files != 'true'
         run: |
           yarn eslint --fix ${{ steps.changes.outputs.frontend_modified_lintable_files }}