fix: force version (#1329)

This commit is contained in:
Tom Hu 2024-03-19 05:19:47 -07:00 committed by GitHub
parent 251ba34669
commit 4621ecce09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 10 deletions

View file

@ -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();