- ensure output is properly set also in commitMode

This commit is contained in:
Mike Penz
2022-07-26 14:42:20 +02:00
parent 12f54a4f9b
commit 2fd6f64773
3 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -41,12 +41,6 @@ export class ReleaseNotes {
.join(',')
)
core.setOutput('changed_files', diffInfo.changedFiles)
core.setOutput('additions', diffInfo.additions)
core.setOutput('deletions', diffInfo.deletions)
core.setOutput('changes', diffInfo.changes)
core.setOutput('commits', diffInfo.commits)
core.endGroup()
} else {
core.startGroup(`🚀 Load commit history`)
@@ -57,6 +51,12 @@ export class ReleaseNotes {
core.endGroup()
}
core.setOutput('changed_files', diffInfo.changedFiles)
core.setOutput('additions', diffInfo.additions)
core.setOutput('deletions', diffInfo.deletions)
core.setOutput('changes', diffInfo.changes)
core.setOutput('commits', diffInfo.commits)
if (mergedPullRequests.length === 0) {
core.warning(`⚠️ No pull requests found`)
return fillAdditionalPlaceholders(