mirror of
https://github.com/PaiGramTeam/GetToken.git
synced 2024-11-24 16:59:18 +00:00
14 lines
360 B
JavaScript
14 lines
360 B
JavaScript
const utils = require("./utils");
|
|
|
|
(async () => {
|
|
try {
|
|
const latestVersionInfo = await utils.getAppVersion()
|
|
let releaseInfo = await utils.getLatestRelease()
|
|
if (releaseInfo.name !== latestVersionInfo["package_version"]) {
|
|
await utils.runWorkflow(41172724)
|
|
}
|
|
} catch (e) {
|
|
console.log(e)
|
|
}
|
|
})()
|