Add CI=true environment variable (#372)
fixes #333 see https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
This commit is contained in:
parent
6fdf1b04ef
commit
44151f208e
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
func (rc *RunContext) withGithubEnv(env map[string]string) map[string]string {
|
||||||
github := rc.getGithubContext()
|
github := rc.getGithubContext()
|
||||||
|
env["CI"] = "true"
|
||||||
env["HOME"] = "/github/home"
|
env["HOME"] = "/github/home"
|
||||||
env["GITHUB_WORKFLOW"] = github.Workflow
|
env["GITHUB_WORKFLOW"] = github.Workflow
|
||||||
env["GITHUB_RUN_ID"] = github.RunID
|
env["GITHUB_RUN_ID"] = github.RunID
|
||||||
|
|
Loading…
Reference in a new issue