1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-20 19:06:59 +00:00

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:
Leonardo Dino 2020-09-28 16:22:42 +01:00 committed by GitHub
parent bd0c8047f1
commit 728caae607

View file

@ -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