diff --git a/dist/index.js b/dist/index.js index a1fde70c..80425e57 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4612,10 +4612,10 @@ exports.canonicalName = canonicalName; const regexUploadUrl = new RegExp("/repos/(?[^/]+)/(?[^/]+)/releases/(?[0-9]+)/"); function parseUploadUrl(rawurl) { const match = rawurl.match(regexUploadUrl); - const groups = match === null || match === void 0 ? void 0 : match.groups; - if (!groups) { + if (!match || !match.groups) { throw new Error(`failed to parse the upload url: ${rawurl}`); } + const groups = match.groups; return { owner: groups["owner"], repo: groups["repo"], diff --git a/package.json b/package.json index 6ac753dc..01c9d9b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "actions-upload-release-asset", - "version": "1.4.0", + "version": "1.5.0", "private": true, "description": "Yet Another Upload Release Asset Action", "main": "lib/main.js",