mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-19 17:37:32 +00:00
all: use cibuild.On
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:

committed by
Josh Bleecher Snyder

parent
b775df0b57
commit
32fd42430b
@@ -9,5 +9,7 @@ import "os"
|
||||
|
||||
// On reports whether the current binary is executing on a CI system.
|
||||
func On() bool {
|
||||
return os.Getenv("GITHUB_ACTIONS") != ""
|
||||
// CI env variable is set by GitHub.
|
||||
// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
|
||||
return os.Getenv("GITHUB_ACTIONS") != "" || os.Getenv("CI") == "true"
|
||||
}
|
||||
|
Reference in New Issue
Block a user