Skip to content

Commit 4e79e65

Browse files
fix: version api url (#105)
1 parent 63958e8 commit 4e79e65

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32419,7 +32419,7 @@ const versionInfo = (platform, version) => version_awaiter(void 0, void 0, void
3241932419
core.info(`==> Running version ${version}`);
3242032420
}
3242132421
try {
32422-
const metadataRes = yield (0,undici.request)(`https://cli.codecov.io/${platform}/latest`, {
32422+
const metadataRes = yield (0,undici.request)(`https://cli.codecov.io/api/${platform}/latest`, {
3242332423
headers: { 'Accept': 'application/json' },
3242432424
});
3242532425
const metadata = yield metadataRes.body.json();

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const versionInfo = async (
1010
}
1111

1212
try {
13-
const metadataRes = await request(`https://cli.codecov.io/${platform}/latest`, {
13+
const metadataRes = await request(`https://cli.codecov.io/api/${platform}/latest`, {
1414
headers: {'Accept': 'application/json'},
1515
});
1616
const metadata = await metadataRes.body.json();

0 commit comments

Comments
 (0)