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")
}
maxheld83/ghactions documentation built on Dec. 16, 2020, 1:40 p.m.