From fd0ee3129d3cbd546699c6e95e661228459d223e Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 1 Feb 2021 13:47:06 +0100 Subject: [PATCH 1/2] Add upload_url as action output --- action.yml | 2 ++ src/main.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/action.yml b/action.yml index ab29e8a05..dff78d62d 100644 --- a/action.yml +++ b/action.yml @@ -35,6 +35,8 @@ env: outputs: url: description: 'URL to the Release HTML Page' + upload_url: + description: 'URL for uploading assets to the release' runs: using: 'node12' main: 'dist/index.js' diff --git a/src/main.ts b/src/main.ts index 47ae8b8ec..df7264e6a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -55,6 +55,7 @@ async function run() { } console.log(`🎉 Release ready at ${rel.html_url}`); setOutput("url", rel.html_url); + setOutput("upload_url", rel.upload_url); } catch (error) { setFailed(error.message); } From 92e3ea0f3acececf93f702b3c1119795ee910ec0 Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 1 Feb 2021 13:49:53 +0100 Subject: [PATCH 2/2] Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fc1698a99..3d6f53c93 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,7 @@ The following outputs can be accessed via `${{ steps..outputs }}` from | Name | Type | Description | |-------------|---------|-----------------------------------------------------------------| | `url` | String | Github.com URL for the release | +| `upload_url`| String | URL for uploading assets to the release | #### environment variables