From 6c11905fe19946a102bfb7fb38b0861ab61c414f Mon Sep 17 00:00:00 2001 From: Nick Cipollo Date: Mon, 26 Aug 2019 16:36:47 -0400 Subject: [PATCH] Update action yml --- action.yml | 21 ++++++++++++++++++++- src/Inputs.ts | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 59695f2..f362d50 100644 --- a/action.yml +++ b/action.yml @@ -2,8 +2,27 @@ name: 'Node 12 Template Action' description: 'Creates github releases' author: 'Nick Cipollo' inputs: + artifact: + description: 'A path to an optional artifact to upload to the release.' + default: '' + commit: + description: 'An optional commit reference. This will be used to create the tag if it doesn't exist.' + default: '' + description: + description: 'An optional description for the release.' + default: '' + descriptionFile: + description: 'An optional description file for the release. This should be the path to the file' + default: '' + name: + description: 'An optional name for the release. If this is omitted the tag will be used.' + default: '' + tag: + description: 'An optional tag for the release. If this is omitted the git ref will be used (if it's a tag).' + default: '' token: - description: 'Github Token' + description: 'The Github token.' + required: true default: '' runs: using: 'node12' diff --git a/src/Inputs.ts b/src/Inputs.ts index 81edaf0..cbccf0e 100644 --- a/src/Inputs.ts +++ b/src/Inputs.ts @@ -33,7 +33,7 @@ export class Inputs { } get name(): string { - const name = core.getInput('tag') + const name = core.getInput('name') if (name) { return name }