mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 07:05:08 +02:00
Introduce a helper method for checking if we're in github actions
This commit is contained in:
@ -277,3 +277,7 @@ func MakeFakeHistoryEntry(command string) data.HistoryEntry {
|
||||
EndTime: time.Unix(fakeHistoryTimestamp+3, 0),
|
||||
}
|
||||
}
|
||||
|
||||
func IsGithubAction() bool {
|
||||
return os.Getenv("GITHUB_ACTION") != ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user