|
1 | | -name: Push release notes to internal release notes channel |
| 1 | +name: Send new release notification to matrix channels |
2 | 2 | on: |
3 | 3 | release: |
4 | 4 | types: |
5 | 5 | - published |
6 | 6 | jobs: |
7 | 7 | ping_matrix: |
| 8 | + strategy: |
| 9 | + matrix: |
| 10 | + channel: |
| 11 | + - '!LhjZccBOqFNYKLdmbb:polkadot.builders' # #KusamaValidatorLounge:polkadot.builders |
| 12 | + - '!FMwxpQnYhRCNDRsYGI:matrix.parity.io' # #kusama-announcements:matrix.parity.io |
| 13 | + - '!NZrbtteFeqYKCUGQtr:matrix.parity.io' # #polkadotvalidatorlounge:web3.foundation |
| 14 | + - '!UqHPWiCBGZWxrmYBkF:matrix.parity.io' # #polkadot-announcements:matrix.parity.io |
| 15 | + - '!NTogofoetwjbTwOoPi:matrix.parity.io' # Internal release-notes channel |
8 | 16 | runs-on: ubuntu-latest |
9 | 17 | steps: |
10 | | - - name: Internal Release Notes Channel |
11 | | - |
| 18 | + |
12 | 19 | with: |
13 | | - room_id: ${{ secrets.MATRIX_ROOM_ID }} |
| 20 | + room_id: ${{ matrix.channel }} # heh |
14 | 21 | access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} |
15 | | - 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 | | - server: "matrix.parity.io" |
17 | | - |
18 | | - - name: Validator Lounge |
19 | | - |
20 | | - with: |
21 | | - room_id: ${{ secrets.VALIDATOR_LOUNGE_MATRIX_ROOM_ID }} |
22 | | - access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} |
23 | | - message: "***Polkadot ${{github.event.release.tag_name}} has been released!***<br/>Please update at your earliest convenience.<br/>${{github.event.release.html_url}}<br/><br/>${{github.event.release.body}}<br/>" |
24 | | - server: "matrix.parity.io" |
25 | | - |
26 | | - - name: Polkadot Announcements |
27 | | - |
28 | | - with: |
29 | | - room_id: ${{ secrets.KUSAMA_ANNOUNCEMENTS_MATRIX_ROOM_ID }} |
30 | | - access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} |
31 | | - message: "***Polkadot ${{github.event.release.tag_name}} has been released!***<br/>Please update at your earliest convenience.<br/>${{github.event.release.html_url}}<br/><br/>${{github.event.release.body}}<br/>" |
| 22 | + message: "***Polkadot ${{github.event.release.tag_name}} has been released!***<br/>${{github.event.release.html_url}}<br/><br/>${{github.event.release.body}}<br/>" |
32 | 23 | server: "matrix.parity.io" |
0 commit comments