mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-23 18:35:44 -05:00
CI: another stab at PR notifications
This commit is contained in:
parent
f5891e1c8c
commit
24652abe8a
1 changed files with 7 additions and 12 deletions
19
.github/workflows/pullrequest.yml
vendored
19
.github/workflows/pullrequest.yml
vendored
|
@ -8,25 +8,20 @@ jobs:
|
|||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "notify: any"
|
||||
- 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 something ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.action }}
|
||||
.. ${{ github.event.pull_request.title }}
|
||||
- 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 }}"
|
||||
PR OPENED ${{ github.event.pull_request.html_url }} by ${{ github.actor }}
|
||||
.. ${{ github.event.pull_request.title }}"
|
||||
- name: "notify: closed"
|
||||
if: github.event.pull_request.action == 'closed'
|
||||
if: github.event.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 }}"
|
||||
message: |
|
||||
PR CLOSED ${{ github.event.pull_request.html_url }} by ${{ github.actor }}
|
||||
|
|
Loading…
Add table
Reference in a new issue