Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 0647714

Browse files
authored
fix: default labels should be undefined (#566)
1 parent 6a05e01 commit 0647714

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ async function manifestInstance (github) {
129129
const component = core.getInput('component') || undefined
130130
const includeVInTag = core.getBooleanInput('include-v-in-tag')
131131
const tagSeparator = core.getInput('tag-separator') || undefined
132-
const snapshotLabels = core.getMultilineInput('snapshot-labels') || undefined
132+
const snapshotLabels = core.getInput('snapshot-labels') ? core.getMultilineInput('snapshot-labels') : undefined
133133
const bootstrapSha = core.getInput('bootstrap-sha') || undefined
134134
const lastReleaseSha = core.getInput('last-release-sha') || undefined
135135
const alwaysLinkLocal = core.getBooleanInput('always-link-local')
136136
const separatePullRequests = core.getBooleanInput('separate-pull-requests')
137137
const plugins = core.getMultilineInput('plugins') || undefined
138-
const labels = core.getMultilineInput('labels') || undefined
139-
const releaseLabels = core.getMultilineInput('release-labels') || undefined
138+
const labels = core.getInput('labels') ? core.getMultilineInput('labels') : undefined
139+
const releaseLabels = core.getInput('release-labels') ? core.getMultilineInput('release-labels') : undefined
140140
const skipLabeling = core.getBooleanInput('skip-labeling')
141141
const sequentialCalls = core.getBooleanInput('sequential-calls')
142142
const groupPullRequestTitlePattern = core.getInput('group-pull-request-title-pattern') || undefined

0 commit comments

Comments
 (0)