This commit is contained in:
parent
3c8a3de563
commit
b3e2bb8e1c
@ -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.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user