File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments