mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-12 12:45:29 +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];
|
const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0];
|
||||||
|
|
||||||
resolve(latestVersion);
|
resolve(latestVersion);
|
||||||
|
} else if (xhr.status !== 200) {
|
||||||
|
reject(`ERROR: got status ${xhr.status}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user