diff --git a/.github/workflows/pr_release_notes.yaml b/.github/workflows/pr_release_notes.yaml index 7e788a154..2f71928d0 100644 --- a/.github/workflows/pr_release_notes.yaml +++ b/.github/workflows/pr_release_notes.yaml @@ -134,9 +134,10 @@ jobs: const releaseNotes = findReleaseNotesSection(pr.body || ''); const hasNoReleaseNoteLabel = labelNames.includes('No release note'); - core.info(`Release notes section found: ${releaseNotes}`); if (releaseNotes) { + core.info(`Release notes found in the PR body: ${releaseNotes}`); + if (hasNoReleaseNoteLabel) { core.setFailed( 'The PR has a "## Release notes" section but is also labeled "No release note". Remove the label or remove the release notes section.' @@ -151,7 +152,7 @@ jobs: return; } - core.info('Release notes found in the PR body.'); + core.info(`Confirm no further action required for release notes.`); return; }