Tests whether a function is currently being run within a GitHub Actions workflow or not.

is_gha(var = "GITHUB_ACTION", verbose = TRUE)

Arguments

var

Environmental variable to check.

verbose

Print messages.

Value

Boolean

Examples

is_gha()
#> Currently running on GITHUB_ACTION: __neurogenomics_rworkflows
#> [1] TRUE