Skip to content

Commit

Permalink
fixing issue that results in downloading shared lib rather than slv b…
Browse files Browse the repository at this point in the history
…inary
  • Loading branch information
shibme committed Jun 18, 2024
1 parent 190fc7b commit fba27d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit fba27d9

Please sign in to comment.