mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-09 18:45:28 +08:00
enhance
This commit is contained in:
parent
f43706a360
commit
722aeff149
@ -18,6 +18,8 @@ function getLatestVersion() {
|
||||
const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0];
|
||||
|
||||
resolve(latestVersion);
|
||||
} else if (xhr.status !== 200) {
|
||||
reject(`ERROR: got status ${xhr.status}`);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user