Skip to content

Commit

Permalink
Merge pull request #4 from phuse-org/fix/fail-urlchecker-workflow
Browse files Browse the repository at this point in the history
Fail URL checker if one or more bad URLs are found
  • Loading branch information
epijim authored Dec 18, 2023
2 parents 03595d6 + 7d5e068 commit 279ed38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/urlchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "YOUR-ORCID-ID"))
Description: What the package does (one paragraph).
Expand Down

0 comments on commit 279ed38

Please sign in to comment.