fix results url construction

This commit is contained in:
Rob Herley
2023-11-20 18:06:44 +00:00
committed by GitHub
parent 9e7201ff5b
commit a920781ca9
2 changed files with 4 additions and 3 deletions

View File

@@ -19,7 +19,8 @@ export function getResultsServiceUrl(): string {
if (!resultsUrl) {
throw new Error('Unable to get the ACTIONS_RESULTS_URL env variable')
}
return resultsUrl
return new URL(resultsUrl).origin
}
export function isGhes(): boolean {