Update action yml

This commit is contained in:
Nick Cipollo
2019-08-26 16:36:47 -04:00
parent ce5f096e71
commit 6c11905fe1
2 changed files with 21 additions and 2 deletions

View File

@@ -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'

View File

@@ -33,7 +33,7 @@ export class Inputs {
}
get name(): string {
const name = core.getInput('tag')
const name = core.getInput('name')
if (name) {
return name
}