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:
parent
bd0c8047f1
commit
728caae607
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…
Add table
Add a link
Reference in a new issue