diff --git a/.github/actions/check-labels/index.js b/.github/actions/check-labels/index.js index ba367c66c..6e7ac4344 100644 --- a/.github/actions/check-labels/index.js +++ b/.github/actions/check-labels/index.js @@ -28,13 +28,14 @@ async function run() { const isOnlyLockFileChanged = files.every((file) => file.filename.endsWith('package-lock.json')); if (isOnlyLockFileChanged) { console.log('Detected renovate PR with only lock file changes. Applying `no-changelog` label.'); - await updateLabels({ octokit, labels: ['no-changelog'] }); + await updateLabels({ octokit, labels: [...labels, 'no-changelog'] }); } else { console.log('Detected renovate PR with file changes. Applying `patch` label.'); - await updateLabels({ octokit, labels: ['patch'] }); + await updateLabels({ octokit, labels: [...labels, 'patch'] }); } } core.setOutput('canMerge', 'Renovate PR'); + return; } if (isMissingSemverLabel) {