Skip to content

Commit 0286ddf

Browse files
committed
Add disclaimer to PR comment
1 parent d956a13 commit 0286ddf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/preview_release_notes.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ jobs:
3131
env:
3232
INITIAL_COMMIT_SHA: ${{ vars.RELEASE_INITIAL_COMMIT_SHA }}
3333
INITIAL_VERSION: ${{ vars.RELEASE_INITIAL_VERSION }}
34+
- name: Add disclaimer to release notes preview
35+
run: |
36+
echo -e "_:warning: (this preview might not be accurate if the PR is not rebased on current master branch)_\n" > release_notes_preview.md
37+
cat release_notes_tmp.md >> release_notes_preview.md
3438
- name: Summarize results
35-
run: cat release_notes_tmp.md >> $GITHUB_STEP_SUMMARY
39+
run: cat release_notes_preview.md >> $GITHUB_STEP_SUMMARY
3640
- name: Update PR comment
3741
# If the PR is from a fork, we cannot update the comment using read only permissions
3842
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
39-
run: gh issue comment $ISSUE --edit-last --create-if-none --body-file release_notes_tmp.md
43+
run: gh issue comment $ISSUE --edit-last --create-if-none --body-file release_notes_preview.md
4044
env:
4145
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4246
ISSUE: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)