mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
ce295364c8
* Change to new secrets * Fix rooms * Fix matrix server * Notification formatting and matrix server fix
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Release - Pushes release notes to a Matrix room
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
ping_matrix:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
channel:
|
|
- name: 'RelEng: Cumulus Release Coordination'
|
|
room: '!NAEMyPAHWOiOQHsvus:parity.io'
|
|
pre-releases: true
|
|
- name: 'Ledger <> Polkadot Coordination'
|
|
room: '!EoIhaKfGPmFOBrNSHT:web3.foundation'
|
|
pre-release: true
|
|
- name: 'General: Rust, Polkadot, Substrate'
|
|
room: '!aJymqQYtCjjqImFLSb:parity.io'
|
|
pre-release: false
|
|
- name: 'Team: DevOps'
|
|
room: '!lUslSijLMgNcEKcAiE:parity.io'
|
|
pre-release: true
|
|
|
|
steps:
|
|
- name: Matrix notification to ${{ matrix.channel.name }}
|
|
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: |
|
|
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}}
|