@@ -17,11 +17,11 @@ jobs:
1717 id : detect_version_change
1818 uses : ./.github/actions/detect-version-change
1919
20- update_pr_comment :
21- name : Update PR Comment
20+ pr_comment_release :
21+ name : Update PR Comment with Release Information
2222 runs-on : ubuntu-latest
2323 needs : check_release_trigger
24- if : ${{ needs.check_release_trigger.outputs.version_changed }} == " true"
24+ if : ${{ needs.check_release_trigger.outputs.version_changed == ' true' }}
2525 steps :
2626 - name : Checkout code
2727 uses : actions/checkout@v4
3838 with :
3939 issue-number : ${{ github.event.pull_request.number }}
4040 comment-author : " github-actions[bot]"
41- body-includes : ✅ **This PR will trigger a new release upon merge!** 🚀
42- - name : Comment on PR if release will be triggered
41+ body-includes : " **This PR will"
42+ - name : Comment on PR that a release will be triggered
4343 uses : peter-evans/create-or-update-comment@v4
4444 with :
4545 comment-id : ${{ steps.fc.outputs.comment-id }}
5454 ${{ steps.extract_version.outputs.changelog }}
5555 ```
5656 edit-mode : replace
57+
58+ pr_comment_no_release :
59+ name : Update PR Comment with Release Information
60+ runs-on : ubuntu-latest
61+ needs : check_release_trigger
62+ if : ${{ needs.check_release_trigger.outputs.version_changed == 'false' }}
63+ steps :
64+ - name : Checkout code
65+ uses : actions/checkout@v4
66+ - name : Remove "release" label
67+ uses : actions-ecosystem/action-remove-labels@v1
68+ with :
69+ labels : release
70+ - name : Find Comment
71+ uses : peter-evans/find-comment@v3
72+ id : fc
73+ with :
74+ issue-number : ${{ github.event.pull_request.number }}
75+ comment-author : " github-actions[bot]"
76+ body-includes : " **This PR will"
77+ - name : Comment on PR that no release will be triggered
78+ uses : peter-evans/create-or-update-comment@v4
79+ with :
80+ comment-id : ${{ steps.fc.outputs.comment-id }}
81+ issue-number : ${{ github.event.pull_request.number }}
82+ body : |
83+ 🚫 **This PR will not trigger a release upon merge!**
84+ edit-mode : replace
0 commit comments