From 559ea5846fb88fa32ebb9bf68b561f26cb949192 Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Thu, 5 Mar 2020 22:28:11 +0100 Subject: [PATCH] Add Github Action for Matrix release bot (#874) This action will publish all pre-released, edited and published releases to a dedicated release notes Matrix room using https://github.com/marketplace/actions/matrix-message @s3krit already added the necessary secrets to the repository settings. --- polkadot/.github/workflows/release-bot.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 polkadot/.github/workflows/release-bot.yml diff --git a/polkadot/.github/workflows/release-bot.yml b/polkadot/.github/workflows/release-bot.yml new file mode 100644 index 0000000000..08aa94417c --- /dev/null +++ b/polkadot/.github/workflows/release-bot.yml @@ -0,0 +1,18 @@ +name: Pushes release updates to a pre-defined Matrix room +on: + release: + types: + - edited + - prereleased + - published +jobs: + ping_matrix: + runs-on: ubuntu-latest + steps: + - name: send message + uses: s3krit/matrix-message-action@v0.0.2 + with: + room_id: ${{ secrets.MATRIX_ROOM_ID }} + access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} + message: "**${{github.event.repository.full_name}}:** A release has been ${{github.event.action}}
Release version [${{github.event.release.tag_name}}](${{github.event.release.html_url}})

***Description:***
${{github.event.release.body}}
" + server: "matrix.parity.io"