calamares/.github/workflows/pullrequest.yml
2022-07-03 00:28:38 +02:00

28 lines
842 B
YAML

name: pullrequest
on:
pull_request:
types: [opened, closed]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: "notify: new"
if: github.event.action == 'opened'
uses: calamares/actions/matrix-notify@v4
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: |
PR OPENED ${{ github.event.pull_request.html_url }} by ${{ github.actor }}
.. ${{ github.event.pull_request.title }}"
- name: "notify: closed"
if: github.event.action == 'closed'
uses: calamares/actions/matrix-notify@v4
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: |
PR CLOSED ${{ github.event.pull_request.html_url }} by ${{ github.actor }}