diff --git a/.github/workflows/urlchecker.yml b/.github/workflows/urlchecker.yml index 29b5eb1..19a5cfa 100644 --- a/.github/workflows/urlchecker.yml +++ b/.github/workflows/urlchecker.yml @@ -46,11 +46,14 @@ jobs: - name: Check for valid URLs run: | - urlchecker::url_check( + bad_urls <- nrow(print(urlchecker::url_check( path = ".", db = NULL, parallel = TRUE, pool = curl::new_pool(), progress = TRUE - ) + ))) + if (bad_urls > 0) { + stop("Looks like a total of ", bad_urls, " URL(s) were found! Please correct them.") + } shell: Rscript {0} diff --git a/DESCRIPTION b/DESCRIPTION index a5e1a76..e8f9acf 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: devops.toolkit -Title: What the Package Does (One Line, Title Case) +Title: An R package containing GitHub Actions workflows. Version: 0.0.0.9000 -Authors@R: +Authors@R: person("First", "Last", , "first.last@example.com", role = c("aut", "cre"), comment = c(ORCID = "YOUR-ORCID-ID")) Description: What the package does (one paragraph).