mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 12:31:03 +00:00
Add release branch check and refactoring (#5622)
* Add release branch chheck and refactoring * Fix trigger patterns
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
name: Release - Send new release notification to matrix channels
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
ping_matrix:
|
||||
strategy:
|
||||
matrix:
|
||||
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 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.room }}
|
||||
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
|
||||
server: "matrix.parity.io"
|
||||
message: "***Polkadot ${{github.event.release.tag_name}} has been released!***<br/>${{github.event.release.html_url}}<br/><br/>${{github.event.release.body}}<br/>"
|
||||
Reference in New Issue
Block a user