- introduce more output values, and a more detailed description
This commit is contained in:
@@ -89,6 +89,7 @@ async function run(): Promise<void> {
|
||||
core.error(`💥 Missing or couldn't resolve 'owner'`)
|
||||
return
|
||||
} else {
|
||||
core.setOutput('owner', owner)
|
||||
core.debug(`Resolved 'owner' as ${owner}`)
|
||||
}
|
||||
|
||||
@@ -96,6 +97,7 @@ async function run(): Promise<void> {
|
||||
core.error(`💥 Missing or couldn't resolve 'owner'`)
|
||||
return
|
||||
} else {
|
||||
core.setOutput('repo', repo)
|
||||
core.debug(`Resolved 'repo' as ${repo}`)
|
||||
}
|
||||
|
||||
@@ -103,6 +105,7 @@ async function run(): Promise<void> {
|
||||
core.error(`💥 Missing or couldn't resolve 'toTag'`)
|
||||
return
|
||||
} else {
|
||||
core.setOutput('toTag', toTag)
|
||||
core.debug(`Resolved 'toTag' as ${toTag}`)
|
||||
}
|
||||
core.endGroup()
|
||||
|
||||
@@ -49,6 +49,13 @@ export class ReleaseNotes {
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
if (!this.options.fromTag) {
|
||||
core.error(`💥 Missing or couldn't resolve 'fromTag'`)
|
||||
return configuration.empty_template ?? DefaultConfiguration.empty_template
|
||||
} else {
|
||||
core.setOutput('fromTag', this.options.fromTag)
|
||||
}
|
||||
|
||||
core.startGroup(`🚀 Load pull requests`)
|
||||
const mergedPullRequests = await this.getMergedPullRequests(octokit)
|
||||
core.endGroup()
|
||||
|
||||
Reference in New Issue
Block a user