Add prerelease
This commit is contained in:
@@ -11,6 +11,7 @@ export interface Inputs {
|
||||
readonly commit: string
|
||||
readonly draft: boolean
|
||||
readonly name: string
|
||||
readonly prerelease: boolean
|
||||
readonly tag: string
|
||||
readonly token: string
|
||||
}
|
||||
@@ -77,6 +78,11 @@ export class CoreInputs implements Inputs {
|
||||
return this.tag
|
||||
}
|
||||
|
||||
get prerelease(): boolean {
|
||||
const draft = core.getInput('prerelease')
|
||||
return draft == 'true'
|
||||
}
|
||||
|
||||
get tag(): string {
|
||||
const tag = core.getInput('tag')
|
||||
if (tag) {
|
||||
|
||||
Reference in New Issue
Block a user