Skip to content

Commit 0eb51a9

Browse files
committed
Fix base url not working correctly
1 parent 16a1834 commit 0eb51a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/src/info/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async function main() {
217217
const { repository } = packageJson;
218218
const summaryItems = Object.values(packages).map((packageInfo): SummaryTableRow => {
219219
const relpath = pathlib.relative(gitRoot, packageInfo.directory);
220-
const url = new URL(relpath, repository);
220+
const url = new URL(relpath, repository.endsWith('/') ? repository : `${repository}/`);
221221

222222
return [
223223
`<code>${packageInfo.name}</code>`,

0 commit comments

Comments
 (0)