CI: move issues notification to Matrix

This commit is contained in:
Adriaan de Groot 2021-05-25 16:25:30 +02:00
parent b419f5a3c3
commit e15db9a68c

View File

@ -9,18 +9,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "notify: new" - name: "notify: new"
uses: rectalogic/notify-irc@v1
if: github.event.issue.state == 'open' if: github.event.issue.state == 'open'
uses: ./.github/actions/notify-push
with: with:
server: chat.freenode.net token: ${{ secrets.MATRIX_TOKEN }}
nickname: cala-issues room: ${{ secrets.MATRIX_ROOM }}
channel: "#calamares"
message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}" message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"
- name: "notify: closed" - name: "notify: closed"
uses: rectalogic/notify-irc@v1
if: github.event.issue.state != 'open' if: github.event.issue.state != 'open'
uses: ./.github/actions/notify-push
with: with:
server: chat.freenode.net token: ${{ secrets.MATRIX_TOKEN }}
nickname: cala-issues room: ${{ secrets.MATRIX_ROOM }}
channel: "#calamares"
message: "CLOSED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}" message: "CLOSED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"