mirror of
https://github.com/actions/setup-python.git
synced 2024-11-25 01:38:56 +00:00
testing for getting from url
This commit is contained in:
parent
6aeae83a71
commit
658d90b402
2 changed files with 6 additions and 8 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -91648,11 +91648,11 @@ exports.findReleaseFromManifest = findReleaseFromManifest;
|
||||||
function getManifest() {
|
function getManifest() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const manifestFromRepo = yield getManifestFromRepo();
|
// const manifestFromRepo = await getManifestFromRepo();
|
||||||
|
const manifestFromRepo = null;
|
||||||
core.info('Successfully fetched the manifest from the repo.');
|
core.info('Successfully fetched the manifest from the repo.');
|
||||||
core.info(`Manifest from repo: ${JSON.stringify(manifestFromRepo)}`);
|
core.info(`Manifest from repo: ${JSON.stringify(manifestFromRepo)}`);
|
||||||
if (!Array.isArray(manifestFromRepo) ||
|
if (!Array.isArray(manifestFromRepo)) {
|
||||||
!manifestFromRepo.every(isValidManifestEntry)) {
|
|
||||||
throw new Error('Invalid response');
|
throw new Error('Invalid response');
|
||||||
}
|
}
|
||||||
return manifestFromRepo;
|
return manifestFromRepo;
|
||||||
|
|
|
@ -35,13 +35,11 @@ export async function findReleaseFromManifest(
|
||||||
|
|
||||||
export async function getManifest(): Promise<tc.IToolRelease[]> {
|
export async function getManifest(): Promise<tc.IToolRelease[]> {
|
||||||
try {
|
try {
|
||||||
const manifestFromRepo = await getManifestFromRepo();
|
// const manifestFromRepo = await getManifestFromRepo();
|
||||||
|
const manifestFromRepo = null;
|
||||||
core.info('Successfully fetched the manifest from the repo.');
|
core.info('Successfully fetched the manifest from the repo.');
|
||||||
core.info(`Manifest from repo: ${JSON.stringify(manifestFromRepo)}`);
|
core.info(`Manifest from repo: ${JSON.stringify(manifestFromRepo)}`);
|
||||||
if (
|
if (!Array.isArray(manifestFromRepo)) {
|
||||||
!Array.isArray(manifestFromRepo) ||
|
|
||||||
!manifestFromRepo.every(isValidManifestEntry)
|
|
||||||
) {
|
|
||||||
throw new Error('Invalid response');
|
throw new Error('Invalid response');
|
||||||
}
|
}
|
||||||
return manifestFromRepo;
|
return manifestFromRepo;
|
||||||
|
|
Loading…
Reference in a new issue