Skip to content

Commit

Permalink
CI: Fix check-labels action removing labels (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw authored Oct 10, 2024
1 parent 3bb4fbb commit 21d2aec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/check-labels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 21d2aec

Please sign in to comment.