mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-14 04:16:42 +00:00
refactor: use versions.js from deno.com instead of github (#45)
This commit is contained in:
@@ -60,9 +60,7 @@ async function resolveVersion({ range, isCanary }) {
|
||||
return { version: range, isCanary: true };
|
||||
}
|
||||
|
||||
const res = await fetch(
|
||||
"https://raw.githubusercontent.com/denoland/dotland/main/versions.json",
|
||||
);
|
||||
const res = await fetch("https://deno.com/versions.json");
|
||||
if (res.status !== 200) {
|
||||
throw new Error(
|
||||
"Failed to fetch stable version info from raw.githubusercontent.com. Please try again later.",
|
||||
|
||||
Reference in New Issue
Block a user