Skip to content
Snippets Groups Projects
Commit 24652abe authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

CI: another stab at PR notifications

parent f5891e1c
Branches
No related tags found
No related merge requests found
...@@ -8,25 +8,20 @@ jobs: ...@@ -8,25 +8,20 @@ jobs:
notify: notify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "notify: any"
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" - name: "notify: new"
if: github.event.pull_request.action == 'opened' if: github.event.action == 'opened'
uses: calamares/actions/matrix-notify@v4 uses: calamares/actions/matrix-notify@v4
with: with:
token: ${{ secrets.MATRIX_TOKEN }} token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }} room: ${{ secrets.MATRIX_ROOM }}
message: "NEW PR ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.title }}" message: |
PR OPENED ${{ github.event.pull_request.html_url }} by ${{ github.actor }}
.. ${{ github.event.pull_request.title }}"
- name: "notify: closed" - name: "notify: closed"
if: github.event.pull_request.action == 'closed' if: github.event.action == 'closed'
uses: calamares/actions/matrix-notify@v4 uses: calamares/actions/matrix-notify@v4
with: with:
token: ${{ secrets.MATRIX_TOKEN }} token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }} 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 }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment