mirror of
https://github.com/PaiGramTeam/GetToken.git
synced 2024-12-18 07:34:27 +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)
|
||
|
}
|
||
|
})()
|