Fixes #219 Add argument to allow only updating drafts and prereleases

This commit is contained in:
Nick Cipollo
2022-10-02 16:31:41 -04:00
committed by Nick Cipollo
parent fc324198c9
commit 5b3ed26ce2
14 changed files with 192 additions and 7 deletions

View File

@@ -25,6 +25,7 @@ export interface Inputs {
readonly updatedReleaseBody?: string
readonly updatedReleaseName?: string
readonly updatedPrerelease?: boolean
readonly updateOnlyUnreleased: boolean
}
export class CoreInputs implements Inputs {
@@ -209,6 +210,10 @@ export class CoreInputs implements Inputs {
if (CoreInputs.omitName || CoreInputs.omitNameDuringUpdate) return undefined
return this.name
}
get updateOnlyUnreleased(): boolean {
return core.getInput('updateOnlyUnreleased') == 'true'
}
private static get omitNameDuringUpdate(): boolean {
return core.getInput('omitNameDuringUpdate') == 'true'