R/helpers.R

Defines functions is_github_actions

Documented in is_github_actions

#' Test whether the runtime is GitHub actions
#'
#' @export
#'
#' @family helpers
is_github_actions <- function() {
  fs::file_exists("/github/workflow/event.json")
}
r-lib/ghactions documentation built on Dec. 15, 2020, 4:07 p.m.