testing for getting from url

This commit is contained in:
mahabaleshwars 2024-09-24 15:19:18 +05:30
parent 6aeae83a71
commit 658d90b402
2 changed files with 6 additions and 8 deletions

View file

@ -35,13 +35,11 @@ export async function findReleaseFromManifest(
export async function getManifest(): Promise<tc.IToolRelease[]> {
try {
const manifestFromRepo = await getManifestFromRepo();
// const manifestFromRepo = await getManifestFromRepo();
const manifestFromRepo = null;
core.info('Successfully fetched the manifest from the repo.');
core.info(`Manifest from repo: ${JSON.stringify(manifestFromRepo)}`);
if (
!Array.isArray(manifestFromRepo) ||
!manifestFromRepo.every(isValidManifestEntry)
) {
if (!Array.isArray(manifestFromRepo)) {
throw new Error('Invalid response');
}
return manifestFromRepo;