Skip to content

Commit

Permalink
Update manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
imranismail committed Sep 25, 2020
1 parent 359e84c commit ff25099
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
44 changes: 22 additions & 22 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ async function getMaxSatisfyingVersion(
)

if (matchingAsset) {
const version = (versionRegex.exec(release.name) || []).shift()
const kustomizeVersion = (versionRegex.exec(release.name) || []).shift()

if (version != null) {
availableVersions.set(version, matchingAsset.browser_download_url)
if (kustomizeVersion != null) {
availableVersions.set(
kustomizeVersion,
matchingAsset.browser_download_url
)
}
}
}
Expand Down

0 comments on commit ff25099

Please sign in to comment.