diff --git a/.github/workflows/lint-changed-files.yaml b/.github/workflows/lint-changed-files.yaml index f3723a067..41c531921 100644 --- a/.github/workflows/lint-changed-files.yaml +++ b/.github/workflows/lint-changed-files.yaml @@ -32,6 +32,7 @@ jobs: - name: Extract and lint files changed by this PR run: | + Sys.setenv("LINTR_ERROR_ON_LINT" = TRUE) files <- gh::gh("GET https://api.github.com/repos/r-lib/lintr/pulls/${{ github.event.pull_request.number }}/files") changed_files <- purrr::map_chr(files, "filename") all_files <- list.files(recursive = TRUE)