Skip to content

Commit

Permalink
GHA workflow lint-changed-files fails when a new lint is found in c…
Browse files Browse the repository at this point in the history
…hanged files (#1522)
  • Loading branch information
IndrajeetPatil authored Sep 16, 2022
1 parent 70e95dd commit 8013786
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8013786

Please sign in to comment.