From b3e2bb8e1c05cbf7113cfb15c20a0d95f79c3b73 Mon Sep 17 00:00:00 2001 From: Sthope <sthope@noreply@SthopeGit> Date: Mon, 28 Aug 2023 18:28:43 +0200 Subject: [PATCH] Update script.js --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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."); }