From 8013786dafd44ca5429122be13d626a846f63147 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Fri, 16 Sep 2022 20:18:33 +0200 Subject: [PATCH] GHA workflow `lint-changed-files` fails when a new lint is found in changed files (#1522) --- .github/workflows/lint-changed-files.yaml | 1 + 1 file changed, 1 insertion(+) 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)