File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,23 @@ jobs:
163163 path : output/
164164 retention-days : 1 # quite low retention, because the artifacts are quite large
165165 overwrite : true # overwrite old artifacts if a PR runs again (artifacts are per PR * per project)
166- - name : Add comment
166+ - name : Find existing comment
167+ uses : peter-evans/find-comment@v3
168+ if : github.event.pull_request.head.repo.full_name == github.repository
169+ id : find-comment
170+ with :
171+ issue-number : ${{ github.event.pull_request.number }}
172+ comment-author : ' github-actions[bot]'
173+ body-includes : ' <!-- build-artifacts -->'
174+ - name : Add or update comment
167175 uses : peter-evans/create-or-update-comment@v5
168- # Check if the event is not triggered by a fork
169- # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#restrictions-on-repository-forks
170176 if : github.event.pull_request.head.repo.full_name == github.repository
171177 with :
178+ comment-id : ${{ steps.find-comment.outputs.comment-id }}
172179 issue-number : ${{ github.event.pull_request.number }}
180+ edit-mode : replace
173181 body : |-
182+ <!-- build-artifacts -->
174183 The rpm/deb packages and the JAR file for openvoxdb are available in a zip archive:
175184 ${{ steps.upload.outputs.artifact-url }}
176185
You can’t perform that action at this time.
0 commit comments