CI: notify on pull-requests
This commit is contained in:
parent
010ab08384
commit
c03850a302
24
.github/workflows/pullrequest.yml
vendored
Normal file
24
.github/workflows/pullrequest.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: pullrequest
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, closed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
notify:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "notify: new"
|
||||||
|
if: github.event.pull_request.action == 'opened'
|
||||||
|
uses: calamares/actions/matrix-notify@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
message: "NEW PR ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.title }}"
|
||||||
|
- name: "notify: closed"
|
||||||
|
if: github.event.pull_request.action == 'closed'
|
||||||
|
uses: calamares/actions/matrix-notify@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.MATRIX_TOKEN }}
|
||||||
|
room: ${{ secrets.MATRIX_ROOM }}
|
||||||
|
message: "CLOSED ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.title }}"
|
Loading…
Reference in New Issue
Block a user