From 44151f208e2f4169308c3c0cee537527701892db Mon Sep 17 00:00:00 2001 From: Leonardo Dino Date: Mon, 28 Sep 2020 16:22:42 +0100 Subject: [PATCH] Add CI=true environment variable (#372) fixes #333 see https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables --- pkg/runner/run_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 971765a..2d6f1e2 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -491,6 +491,7 @@ func withDefaultBranch(b string, event map[string]interface{}) map[string]interf func (rc *RunContext) withGithubEnv(env map[string]string) map[string]string { github := rc.getGithubContext() + env["CI"] = "true" env["HOME"] = "/github/home" env["GITHUB_WORKFLOW"] = github.Workflow env["GITHUB_RUN_ID"] = github.RunID