mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
images: Rework the golden tests
This commit is contained in:
@@ -110,6 +110,11 @@ func IsCI() bool {
|
||||
return (os.Getenv("CI") != "" || os.Getenv("CI_LOCAL") != "") && os.Getenv("CIRCLE_BRANCH") == ""
|
||||
}
|
||||
|
||||
// IsRealCI reports whether we're running in a CI server, but not in a local CI setup.
|
||||
func IsRealCI() bool {
|
||||
return IsCI() && os.Getenv("CI_LOCAL") == ""
|
||||
}
|
||||
|
||||
// IsGitHubAction reports whether we're running in a GitHub Action.
|
||||
func IsGitHubAction() bool {
|
||||
return os.Getenv("GITHUB_ACTION") != ""
|
||||
|
Reference in New Issue
Block a user