GetToken/.github/update.js

14 lines
360 B
JavaScript
Raw Permalink Normal View History

2022-11-24 04:54:51 +00:00
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)
}
})()