Skip to content

Commit

Permalink
fix: Use ServerURL from github context to ensure we get the right URL (
Browse files Browse the repository at this point in the history
  • Loading branch information
hnrkndrssn authored Feb 6, 2023
1 parent 030b71f commit bdfc1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/push-build-information.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export async function pushBuildInformationFromInputs(
branch = branch.substring('refs/heads/'.length)
}

const repoUri = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}`
const pushEvent = context.payload as PushEvent | undefined
const repoUri: string = pushEvent?.repository?.url || `https://github.com/${context.repo.owner}/${context.repo.repo}`
const commits: IOctopusBuildInformationCommit[] =
pushEvent?.commits?.map((commit: Commit) => {
return {
Expand Down

0 comments on commit bdfc1ec

Please sign in to comment.