Skip to content

Commit

Permalink
try lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher authored Jan 9, 2025
1 parent 6d40aed commit 7c7ff63
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/check-link-rot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
pandoc-version: "latest"

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Run URL checker
run: |
install.packages(c("urlchecker", "cli"))
options(crayon.enabled = TRUE)
rotten_links <- urlchecker::url_check(progress = FALSE)
print(rotten_links)
if (length(rotten_links$URL) > 0L) {
cli::cli_abort("Some URLs are outdated and need to be updated.")
}
shell: Rscript {0}
fail: true

0 comments on commit 7c7ff63

Please sign in to comment.