From fba27d90efc2df0ce48cfffddd553806a4e5aa35 Mon Sep 17 00:00:00 2001 From: Shibly Meeran Date: Tue, 18 Jun 2024 12:19:34 +0530 Subject: [PATCH] fixing issue that results in downloading shared lib rather than slv binary --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 50eae7e..fa180d6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -114,7 +114,7 @@ async function getDownloadUrlForVersion(version) { core.setFailed('No assets found in the release version ' + version); } for (let i = 0; i < assets.length; i++) { - if (assets[i].name.includes(assetName) && + if (assets[i].name.includes(assetName + '_') && assets[i].name.includes(mapOS(platform)) && assets[i].name.includes(mapArch(os.arch())) && assets[i].name.includes('.zip')) { diff --git a/index.js b/index.js index c225e02..f92f061 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ async function getDownloadUrlForVersion(version) { core.setFailed('No assets found in the release version ' + version); } for (let i = 0; i < assets.length; i++) { - if (assets[i].name.includes(assetName) && + if (assets[i].name.includes(assetName + '_') && assets[i].name.includes(mapOS(platform)) && assets[i].name.includes(mapArch(os.arch())) && assets[i].name.includes('.zip')) {