Update script.js
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sthope 2023-08-28 18:28:43 +02:00
parent 3c8a3de563
commit b3e2bb8e1c

View File

@ -13,10 +13,10 @@ async function getLatestReleaseTag() {
}
}
const latestReleaseTag = getLatestReleaseTag();
const latestReleaseTag = await getLatestReleaseTag();
const targetReleaseTag = "2023-02-13-1223"; // Replace with your target release tag
const isNewer = semver.gt(latestReleaseTag, "2023-02-13-1223");
if (isNewer) {
// Compare release tags as strings
if (latestReleaseTag > targetReleaseTag) {
console.log("This pipeline is run because the new release is newer than the one I have.");
}