Skip to content

Commit

Permalink
ci: reduce the list of events triggering matrix messages (paritytech#547
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chevdor authored Jul 30, 2021
1 parent f5de2f9 commit 2fd51bd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Pushes release updates to a pre-defined Matrix room
name: Pushes release notes to a Matrix room
on:
release:
types:
- edited
- prereleased
- published

jobs:
ping_matrix:
runs-on: ubuntu-latest
Expand All @@ -14,5 +13,11 @@ jobs:
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
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/>"
message: |
A (pre)release has been ${{github.event.action}} in **${{github.event.repository.full_name}}:**<br/>
Release version: [${{github.event.release.tag_name}}](${{github.event.release.html_url}})
-----
${{github.event.release.body}}
server: "matrix.parity.io"

0 comments on commit 2fd51bd

Please sign in to comment.