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')) {