feat(actions): Add action to notify matrix channel on new PRs #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: [ dev ] | |
types: [ ready_for_review ] | |
jobs: | |
send-message: | |
runs-on: ubuntu-latest | |
name: Send message via Matrix | |
steps: | |
- name: Send message to test channel | |
id: matrix-chat-message | |
uses: fadenb/[email protected] | |
with: | |
homeserver: 'matrix.org' | |
token: ${{ secrets.MATRIX_TOKEN }} | |
channel: '!CexOsaVfMdZOTmJwCz:matrix.org' | |
message: | | |
Pull request ready for review by ${{ github.event.sender }}: | |
# ${{ github.event.pull_request.title }} | |
${ echo `${{ github.event.pull_request.body }}` | sed -e 's/^/> /' } | |
check it out here: ${{ github.event.pull_request.url }} |