- add capability to ignore any pre-release releases from matching against, only relevant if no fromTag is specified

- protect against issue if no previous tag is available
This commit is contained in:
Mike Penz
2020-10-16 20:31:49 +02:00
parent bd027aa32a
commit 2b44c93df7
5 changed files with 35 additions and 13 deletions
+3
View File
@@ -33,6 +33,8 @@ async function run(): Promise<void> {
const fromTag = core.getInput('fromTag')
let toTag = core.getInput('toTag')
const ignorePreReleases = core.getInput('ignorePreReleases')
if (!toTag) {
// if not specified try to retrieve tag from git
const gitHelper = await createCommandManager(repositoryPath)
@@ -87,6 +89,7 @@ async function run(): Promise<void> {
repo,
fromTag,
toTag,
ignorePreReleases: ignorePreReleases === 'true',
configuration
})