From a3761d202ca85a7e1c4b06591dfbb4478e96ea66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Brekelmans?= Date: Tue, 6 Oct 2020 15:41:56 +0200 Subject: [PATCH] Add extra outputs --- action.yml | 12 +++++++++++- dist/index.js | 21 ++++++++++++++++----- package.json | 2 +- src/get-release.js | 12 ++++++++---- 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index 210f634..54ee002 100644 --- a/action.yml +++ b/action.yml @@ -3,11 +3,21 @@ description: 'Get the upload URL for a release for a tag in your repository' author: 'GitHub' outputs: id: - description: 'The ID of the Release' + description: 'The ID of the release' html_url: description: 'The URL users can navigate to in order to view the release' upload_url: description: 'The URL for uploading assets to the release' + tag_name: + description: 'The git tag associated with the release.' + name: + description: 'The name of the release' + body: + description: 'The body of the release' + draft: + description: 'Whether this release is marked as a draft or not' + prerelease: + description: 'Whether this release is marked as a pre-release or not' runs: using: 'node12' main: 'dist/index.js' diff --git a/dist/index.js b/dist/index.js index fd7aa13..18f98d3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4168,6 +4168,12 @@ function convertBody(buffer, headers) { // html4 if (!res && str) { res = /