mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 04:12:17 +01:00
enhance
This commit is contained in:
@@ -18,6 +18,8 @@ function getLatestVersion() {
|
|||||||
const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0];
|
const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0];
|
||||||
|
|
||||||
resolve(latestVersion);
|
resolve(latestVersion);
|
||||||
|
} else if (xhr.status !== 200) {
|
||||||
|
reject(`ERROR: got status ${xhr.status}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user