diff --git a/polkadot/.github/workflows/release-bot.yml b/polkadot/.github/workflows/release-bot.yml
index a2b83fd82e..dd3a9ca8ac 100644
--- a/polkadot/.github/workflows/release-bot.yml
+++ b/polkadot/.github/workflows/release-bot.yml
@@ -3,22 +3,35 @@ on:
release:
types:
- published
+
jobs:
ping_matrix:
strategy:
matrix:
channel:
- - '!LhjZccBOqFNYKLdmbb:polkadot.builders' # #KusamaValidatorLounge:polkadot.builders
- - '!FMwxpQnYhRCNDRsYGI:matrix.parity.io' # #kusama-announcements:matrix.parity.io
- - '!NZrbtteFeqYKCUGQtr:matrix.parity.io' # #polkadotvalidatorlounge:web3.foundation
- - '!UqHPWiCBGZWxrmYBkF:matrix.parity.io' # #polkadot-announcements:matrix.parity.io
- - '!NTogofoetwjbTwOoPi:matrix.parity.io' # Internal release-notes channel
+ - name: '#KusamaValidatorLounge:polkadot.builders'
+ room: '!LhjZccBOqFNYKLdmbb:polkadot.builders'
+ pre-releases: false
+ - name: '#kusama-announcements:matrix.parity.io'
+ room: '!FMwxpQnYhRCNDRsYGI:matrix.parity.io'
+ pre-release: false
+ - name: '#polkadotvalidatorlounge:web3.foundation'
+ room: '!NZrbtteFeqYKCUGQtr:matrix.parity.io'
+ pre-release: false
+ - name: '#polkadot-announcements:matrix.parity.io'
+ room: '!UqHPWiCBGZWxrmYBkF:matrix.parity.io'
+ pre-release: false
+ - name: Internal release-notes channel
+ room: '!NTogofoetwjbTwOoPi:matrix.parity.io'
+ pre-release: true
+
runs-on: ubuntu-latest
steps:
- - name: Send Matrix message
+ - name: Send Matrix message to ${{ matrix.channel.name }}
+ if: github.event.release.prerelease == false || matrix.channel.pre-release
uses: s3krit/matrix-message-action@v0.0.3
with:
- room_id: ${{ matrix.channel }} # heh
+ room_id: ${{ matrix.channel.room }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
- message: "***Polkadot ${{github.event.release.tag_name}} has been released!***
${{github.event.release.html_url}}
${{github.event.release.body}}
"
server: "matrix.parity.io"
+ message: "***Polkadot ${{github.event.release.tag_name}} has been released!***
${{github.event.release.html_url}}
${{github.event.release.body}}
"