Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
DyfanJones committed Aug 19, 2024
1 parent 95f00a7 commit 12272f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions make.paws/R/sdk_helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ paws_check_rhub_sub_cat <- function(in_dir = "../cran",

#' @rdname paws_check_rhub
#' @export
paws_rhub_action_check <- function (packages = "paws", platforms = c("linux", "macos", "macos-arm64", "windows")) {
paws_rhub_action_check <- function(packages = "paws", platforms = c("linux", "macos", "macos-arm64", "windows")) {
url <- "https://api.github.com/repos/paws-r/paws-rhub/actions/workflows/rhub.yaml/dispatches"
pat <- gitcreds::gitcreds_get(url = "https://github.com/paws-r/paws-rhub")$password
config <- list(platforms = platforms)
Expand All @@ -143,10 +143,11 @@ paws_rhub_action_check <- function (packages = "paws", platforms = c("linux", "m
httr2::req_method("POST")
}) |> httr2::req_perform_parallel()
names(resps) <- unlist(packages)

for (pkg in names(resps)) {
if (resps[[pkg]]$status_code != 204)
if (resps[[pkg]]$status_code != 204) {
stop(sprintf("Failed to start rhub action for package: %s", pkg))
}
}
writeLines("Please check results: https://github.com/paws-r/paws-rhub/actions")
invisible(NULL)
Expand Down

0 comments on commit 12272f5

Please sign in to comment.