From be719f8b99c809574ccee86860cf80abc2dd8549 Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 30 Apr 2025 14:35:28 +0200 Subject: [PATCH] chore: Remove matrix notification workflow Signed-off-by: Krille --- .github/workflows/matrix_notification.yaml | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/matrix_notification.yaml diff --git a/.github/workflows/matrix_notification.yaml b/.github/workflows/matrix_notification.yaml deleted file mode 100644 index dde670df8..000000000 --- a/.github/workflows/matrix_notification.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Matrix Notification - -on: - issues: - types: [ opened ] - issue_comment: - types: [ created ] - -jobs: - notify: - runs-on: ubuntu-latest - - steps: - - name: Send Matrix Notification - env: - MATRIX_URL: https://matrix.janian.de/_matrix/client/v3/rooms/${{ secrets.MATRIX_MANAGEMENT_ROOM }}/send/m.room.message - run: | - if [ "${{ github.event.action }}" == "opened" ]; then - PAYLOAD="{\"msgtype\": \"m.notice\", \"body\": \"New Issue from ${{ github.event.issue.user.login }}\\n${{ github.event.issue.title }}\\n\\n${{ github.event.issue.body }}\\n\\nURL: ${{ github.event.issue.html_url }}\"}" - elif [ "${{ github.event.action }}" == "created" ]; then - PAYLOAD="{\"msgtype\": \"m.notice\", \"body\": \"New Comment from ${{ github.event.comment.user.login }}\\n\\n${{ github.event.comment.body }}\\n\\nURL: ${{ github.event.comment.html_url }}\"}" - fi - curl -X POST -H "Authorization: Bearer ${{ secrets.MATRIX_BOT_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d "$PAYLOAD" \ - $MATRIX_URL