Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: force version #1329

Merged
merged 1 commit into from Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions dist/index.js
Expand Up @@ -32718,11 +32718,9 @@ var version_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _


const versionInfo = (platform, version) => version_awaiter(void 0, void 0, void 0, function* () {
if (version) {
core.info(`==> Running version ${version}`);
}
core.info(`==> Running version ${version}`);
try {
const metadataRes = yield (0,undici.request)(`https://cli.codecov.io/${platform}/latest`, {
const metadataRes = yield (0,undici.request)(`https://cli.codecov.io/${platform}/${version}`, {
headers: { 'Accept': 'application/json' },
});
const metadata = yield metadataRes.body.json();
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions src/version.ts
Expand Up @@ -3,14 +3,12 @@ import {request} from 'undici';

const versionInfo = async (
platform: string,
version?: string,
version: string,
): Promise<void> => {
if (version) {
core.info(`==> Running version ${version}`);
}
core.info(`==> Running version ${version}`);

try {
const metadataRes = await request(`https://cli.codecov.io/${platform}/latest`, {
const metadataRes = await request(`https://cli.codecov.io/${platform}/${version}`, {
headers: {'Accept': 'application/json'},
});
const metadata = await metadataRes.body.json();
Expand Down