Skip to content

Commit

Permalink
tryCatch fetching gh workflow info
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 16, 2024
1 parent 0ccc048 commit d48575e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: pkgcheck
Title: rOpenSci Package Checks
Version: 0.1.2.054
Version: 0.1.2.055
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265")),
Expand Down
4 changes: 3 additions & 1 deletion R/pkgcheck-fn.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ pkgcheck <- function (path = ".", goodpractice = TRUE,
if (nzchar (u) & has_token) {
checks$info$badges <- pkgchk_ci_badges (u)
if (grepl ("github", u)) { # now redundant - remove!
checks$info$github_workflows <- ci_results_gh (path)
checks$info$github_workflows <- suppressWarnings (
tryCatch (ci_results_gh (path), error = function (e) NULL)
)
}
}

Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/pkgcheck",
"issueTracker": "https://github.com/ropensci-review-tools/pkgcheck/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.2.054",
"version": "0.1.2.055",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit d48575e

Please sign in to comment.