Skip to content

Commit de61e26

Browse files
committed
passthrough GITHUB_ACTIONS=true so smart build scripts can enable log line grouping
1 parent 2f537f5 commit de61e26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/bob/docker.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ func dockerRelayEnvVars(
157157
env("DEBUG", "true")
158158
}
159159

160+
// "Always set to true when GitHub Actions is running the workflow. You can use this variable to
161+
// differentiate when tests are being run locally or by GitHub Actions."
162+
if os.Getenv("GITHUB_ACTIONS") == "true" { // relay as-is
163+
env("GITHUB_ACTIONS", "true")
164+
}
165+
160166
return dockerArgs, nil
161167
}
162168

0 commit comments

Comments
 (0)