Determines if the environment is GitHub Actions
Note
It is possible to fake being on GitHub Actions, using:
“`r Sys.setenv(GITHUB_ACTIONS = "I fake being on GitHub Actions") is_on_github_actions() # Will be true “`
To undo this, do
“`r Sys.setenv(GITHUB_ACTIONS = "") is_on_github_actions() # Will be false “`
Examples
if (is_on_github_actions()) {
message("Running on GitHub Actions")
}