Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit d206f53

Browse files
authored
[CI] Matrix release-notifications redux (#2308)
* update release-bot.yml github action * fix release-bot.yml * configure channels
1 parent 2dbfac3 commit d206f53

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

.github/workflows/release-bot.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
1-
name: Push release notes to internal release notes channel
1+
name: Send new release notification to matrix channels
22
on:
33
release:
44
types:
55
- published
66
jobs:
77
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
816
runs-on: ubuntu-latest
917
steps:
10-
- name: Internal Release Notes Channel
11-
uses: s3krit/[email protected]
18+
- uses: s3krit/[email protected]
1219
with:
13-
room_id: ${{ secrets.MATRIX_ROOM_ID }}
20+
room_id: ${{ matrix.channel }} # heh
1421
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-
uses: s3krit/[email protected]
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-
uses: s3krit/[email protected]
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/>"
3223
server: "matrix.parity.io"

0 commit comments

Comments
 (0)