Skip to content

Commit 2fd51bd

Browse files
authored
ci: reduce the list of events triggering matrix messages (paritytech#547)
1 parent f5de2f9 commit 2fd51bd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release-bot.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Pushes release updates to a pre-defined Matrix room
1+
name: Pushes release notes to a Matrix room
22
on:
33
release:
44
types:
5-
- edited
6-
- prereleased
75
- published
6+
87
jobs:
98
ping_matrix:
109
runs-on: ubuntu-latest
@@ -14,5 +13,11 @@ jobs:
1413
with:
1514
room_id: ${{ secrets.MATRIX_ROOM_ID }}
1615
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
17-
message: "**${{github.event.repository.full_name}}:** A release has been ${{github.event.action}}<br/>Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})<br/><br/>***Description:***<br/>${{github.event.release.body}}<br/>"
16+
message: |
17+
A (pre)release has been ${{github.event.action}} in **${{github.event.repository.full_name}}:**<br/>
18+
Release version: [${{github.event.release.tag_name}}](${{github.event.release.html_url}})
19+
20+
-----
21+
22+
${{github.event.release.body}}
1823
server: "matrix.parity.io"

0 commit comments

Comments
 (0)