Skip to content

Commit

Permalink
bump up to v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jan 12, 2022
1 parent a9bbed0 commit db4dfed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4612,10 +4612,10 @@ exports.canonicalName = canonicalName;
const regexUploadUrl = new RegExp("/repos/(?<owner>[^/]+)/(?<repo>[^/]+)/releases/(?<release_id>[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"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit db4dfed

Please sign in to comment.