forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.65 KB
/
release-99_notif-published.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release - Announce release to Matrix rooms
on:
release:
types:
- published
- prereleased
jobs:
ping_matrix:
runs-on: ubuntu-latest
environment: release
strategy:
matrix:
channel:
# Internal
- name: "RelEng: Polkadot Release Coordination"
room: '!cqAmzdIcbOFwrdrubV:parity.io'
pre-release: true
# External
- name: 'Ledger <> Polkadot Coordination'
room: '!EoIhaKfGPmFOBrNSHT:web3.foundation'
pre-release: true
# Public
- name: '#polkadotvalidatorlounge:web3.foundation'
room: '!NZrbtteFeqYKCUGQtr:matrix.parity.io'
pre-releases: false
- name: '#polkadot-announcements:parity.io'
room: '!UqHPWiCBGZWxrmYBkF:matrix.parity.io'
pre-releases: false
- name: '#kusama-announce:parity.io'
room: '!FMwxpQnYhRCNDRsYGI:matrix.parity.io'
pre-releases: false
steps:
- name: Matrix notification to ${{ matrix.channel.name }}
if: github.event.release.prerelease == false || matrix.channel.pre-release
uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3
with:
room_id: ${{ matrix.channel.room }}
access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}
server: m.parity.io
message: |
@room
A new node 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}})
-----