diff --git a/script.js b/script.js index 724f2ab..4ea0a80 100644 --- a/script.js +++ b/script.js @@ -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."); }