Repository updates #31
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
name: Repository updates | |
on: [check_run, check_suite, create, delete, deployment, deployment_status, fork, gollum, issue_comment, issues, label, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, watch] | |
jobs: | |
notify: | |
name: Notify Matrix about updates | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: calculate message | |
uses: olabiniV2/[email protected] | |
id: messages | |
with: | |
event: ${{ toJson(github.event) }} | |
escape: matrix | |
- name: send message to Matrix | |
uses: olabiniV2/[email protected] | |
with: | |
room_id: ${{ secrets.MATRIX_COYIM_ROOM_ID }} | |
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
server: ${{ secrets.MATRIX_SERVER }} | |
subject: ${{ steps.messages.outputs.subject }} | |
message: ${{ steps.messages.outputs.message }} | |