Skip to content

Commit c43f2fe

Browse files
authored
Add Release Notes disclaimer only for PRs (#516)
# Summary Previously we were adding the disclaimer also for master commits, which can be misleading -> https://github.com/mongodb/mongodb-kubernetes/actions/runs/18402911248/attempts/1#summary-52436112489 ## Proof of Work Workflow validation is enough. ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] Have you added changelog file? - use `skip-changelog` label if not needed - refer to [Changelog files and Release Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes) section in CONTRIBUTING.md for more details
1 parent 57f6afc commit c43f2fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/preview_release_notes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
# not be available in the pull requests running from forks.
3838
RELEASE_INITIAL_COMMIT_SHA: ${{ env.RELEASE_INITIAL_COMMIT_SHA }}
3939
RELEASE_INITIAL_VERSION: ${{ env.RELEASE_INITIAL_VERSION }}
40-
- name: Add disclaimer to release notes preview
40+
- name: Add disclaimer to release notes preview for Pull Requests
41+
if: github.event_name == 'pull_request'
4142
run: |
4243
echo -e "_:warning: (this preview might not be accurate if the PR is not rebased on current master branch)_\n" > release_notes_preview.md
4344
cat release_notes_tmp.md >> release_notes_preview.md

0 commit comments

Comments
 (0)