Skip to content

Commit 688c7ca

Browse files
authored
Merge pull request phpbb#6731 from marc1706/ticket/17407
[ticket/17407] Combine create and update step and use replace edit-mode
2 parents db7b4c9 + 44f04a9 commit 688c7ca

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/check_merge_to_master.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,13 @@ jobs:
5151
body-includes: The attempt to merge branch `3.3.x` into `master` has completed
5252

5353
- name: Post comment on PR
54-
if: steps.fc.outputs.comment-id == ''
54+
if: always() # Ensure this step always runs, regardless of merge result
5555
uses: peter-evans/create-or-update-comment@v4
5656
with:
5757
token: ${{ secrets.GITHUB_TOKEN }}
5858
issue-number: ${{ github.event.pull_request.number }}
59-
body: |
60-
The attempt to merge branch `3.3.x` into `master` has completed after considering the changes in this PR.
61-
62-
- Merge result: ${{ steps.merge_master.outputs.mergeable == 'true' && 'Success ✅' || 'Conflict ❌' }}
63-
64-
${{ steps.merge_master.outputs.mergeable == 'true' && 'This PR is ready to be merged.' || 'A separate PR will be needed to merge `3.3.x` into `master`.' }}
65-
66-
- name: Update comment on PR
67-
if: steps.fc.outputs.comment-id != ''
68-
uses: peter-evans/create-or-update-comment@v4
69-
with:
70-
token: ${{ secrets.GITHUB_TOKEN }}
7159
comment-id: ${{ steps.fc.outputs.comment-id }}
60+
edit-mode: replace
7261
body: |
7362
The attempt to merge branch `3.3.x` into `master` has completed after considering the changes in this PR.
7463

0 commit comments

Comments
 (0)