Skip to content

Commit 27d1e8c

Browse files
committed
WIP
1 parent 6fc2d05 commit 27d1e8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

run.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ task_run <- function(url, token, branch, hash, name) {
7777
task$taskId
7878
}
7979

80-
task_status <- function(url, token, task_id, include_logs = FALSE) {
80+
task_status <- function(url, token, task_id, include_logs = NULL) {
8181
req <- httr2::request(url) |>
8282
httr2::req_auth_bearer_token(token) |>
8383
httr2::req_template("packit/api/runner/status/{task_id}") |>
@@ -134,8 +134,9 @@ run <- function(url, token, ref_name, sha, entry) {
134134
if (!is.na(Sys.getenv("CI", NA))) {
135135
cli::cli_text("::group::Running {entry$name}")
136136
withr::defer(cli::cli_text("::endgroup::"))
137+
} else {
138+
cli::cli_rule("Running {entry$name}")
137139
}
138-
cli::cli_rule("Running {entry$name}")
139140

140141
task_id <- task_run(url, token, ref_name, sha, entry$name)
141142
task_wait(url, token, task_id)

0 commit comments

Comments
 (0)