Skip to content

Commit

Permalink
Update /dist
Browse files Browse the repository at this point in the history
  • Loading branch information
robinraju committed Jun 16, 2022
1 parent 374ee7f commit ed86e52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,12 @@ class ReleaseDownloader {
resolveAssets(ghRelease, downloadSettings) {
const downloads = [];
if (ghRelease && ghRelease.assets.length > 0) {
if (downloadSettings.fileName === "*") {
if (downloadSettings.fileName.includes("*")) {
// Download all assets
for (const asset of ghRelease.assets) {
if (!new RegExp(`^${downloadSettings.fileName.replace(/\*/g, "(.)*")}$`, "").test(asset["name"])) {
continue;
}
const dData = {
fileName: asset["name"],
url: asset["url"],
Expand Down
15 changes: 5 additions & 10 deletions package-lock.json

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

0 comments on commit ed86e52

Please sign in to comment.