Skip to content

Commit

Permalink
Add CI=true environment variable (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardodino authored Sep 28, 2020
1 parent 6fdf1b0 commit 44151f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runner/run_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44151f2

Please sign in to comment.