allow localhost hostnames for artifact checks

This commit is contained in:
Rob Herley authored and GitHub committed 2024-07-03 16:55:53 +00:00
1 parent 0df831db2f
commit 8c7a920210
4 files changed
+13 -4

No files matched your search

+3 -3
View File
@@ -30,10 +30,10 @@ export function isGhes(): boolean {
const hostname = ghUrl.hostname.trimEnd().toUpperCase()
const isGitHubHost = hostname === 'GITHUB.COM'
const isGheHost =
hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST')
const isGheHost = hostname.endsWith('.GHE.COM')
const isLocalHost = hostname.endsWith('.LOCALHOST')
return !isGitHubHost && !isGheHost
return !isGitHubHost && !isGheHost && !isLocalHost
}
export function getGitHubWorkspaceDir(): string {