Prints a string if on Github, detected via env var GITHUB_ACTIONS == 'true'.

octocat(string)

Arguments

string

A character vector of length 1. This string will be terminated with last and printed with a new line.

Value

string invisibly

Examples

Sys.setenv(GITHUB_ACTIONS = "true")
octocat("::error ::Something is wrong")
#> ::error ::Something is wrong
Sys.unsetenv("GITHUB_ACTIONS")
octocat("::error ::Something is wrong")