mirror of
https://gitea.com/actions/setup-deno.git
synced 2026-07-06 18:24:43 +01:00
chore: use versions.json from dl.deno.land
This commit is contained in:
@@ -159,10 +159,10 @@ async function resolveRelease(range: string): Promise<Version | null> {
|
|||||||
}
|
}
|
||||||
return { version, kind: "stable" };
|
return { version, kind: "stable" };
|
||||||
} else {
|
} else {
|
||||||
const res = await fetchWithRetries("https://deno.com/versions.json");
|
const res = await fetchWithRetries("https://dl.deno.land/versions.json");
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Failed to fetch stable version info from deno.com/versions.json. Please try again later.",
|
"Failed to fetch stable version info from dl.deno.land/versions.json. Please try again later.",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const versionJson = await res.json();
|
const versionJson = await res.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user