From ed86e52bc497d1185844fc28454c5999aaed2fa5 Mon Sep 17 00:00:00 2001 From: Robin Raju Date: Thu, 16 Jun 2022 20:53:10 +0200 Subject: [PATCH] Update /dist --- dist/index.js | 5 ++++- package-lock.json | 15 +++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/dist/index.js b/dist/index.js index 674c367d..08e855f5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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"], diff --git a/package-lock.json b/package-lock.json index 5877e977..06e07c0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8644,8 +8644,7 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} + "dev": true }, "acorn-walk": { "version": "7.2.0", @@ -9366,8 +9365,7 @@ "version": "8.3.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", - "dev": true, - "requires": {} + "dev": true }, "eslint-import-resolver-node": { "version": "0.3.6", @@ -9476,8 +9474,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", - "dev": true, - "requires": {} + "dev": true }, "eslint-plugin-import": { "version": "2.25.3", @@ -11110,8 +11107,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", - "dev": true, - "requires": {} + "dev": true }, "jest-regex-util": { "version": "27.5.1", @@ -12555,8 +12551,7 @@ "version": "7.5.7", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==", - "dev": true, - "requires": {} + "dev": true }, "xml-name-validator": { "version": "3.0.0",