Introduce a helper method for checking if we're in github actions

This commit is contained in:
David Dworken
2022-11-12 06:46:37 -08:00
parent ddc9dc1080
commit cda9c886e1
2 changed files with 12 additions and 8 deletions

View File

@ -277,3 +277,7 @@ func MakeFakeHistoryEntry(command string) data.HistoryEntry {
EndTime: time.Unix(fakeHistoryTimestamp+3, 0),
}
}
func IsGithubAction() bool {
return os.Getenv("GITHUB_ACTION") != ""
}