Skip to content

Commit 378502c

Browse files
authored
Merge pull request #179 from bastelfreak/comment
CI: Update comment with ZIP link
2 parents 8c6cc13 + 39639a9 commit 378502c

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/pr-testing.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,25 @@ jobs:
115115
path: output/
116116
retention-days: 1 # quite low retention, because the artifacts are quite large
117117
overwrite: true # overwrite old artifacts if a PR runs again (artifacts are per PR * per project)
118-
- name: Add comment
119-
uses: peter-evans/create-or-update-comment@v5
118+
- name: Find existing comment
119+
uses: peter-evans/find-comment@v3
120120
# Check if the event is not triggered by a fork
121121
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#restrictions-on-repository-forks
122122
if: github.event.pull_request.head.repo.full_name == github.repository
123+
id: find-comment
124+
with:
125+
issue-number: ${{ github.event.pull_request.number }}
126+
comment-author: 'github-actions[bot]'
127+
body-includes: '<!-- build-artifacts -->'
128+
- name: Add or update comment
129+
uses: peter-evans/create-or-update-comment@v5
130+
if: github.event.pull_request.head.repo.full_name == github.repository
123131
with:
132+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
124133
issue-number: ${{ github.event.pull_request.number }}
134+
edit-mode: replace
125135
body: |-
136+
<!-- build-artifacts -->
126137
The rpm/deb packages and the JAR file for openvox-server are available in a zip archive:
127138
${{ steps.upload.outputs.artifact-url }}
128139

0 commit comments

Comments
 (0)