From 8a2b9933b3dac0660cb89e85b7be37c1706a073d Mon Sep 17 00:00:00 2001 From: Krille Date: Tue, 15 Apr 2025 15:12:51 +0200 Subject: [PATCH] chore: Follow up matrix notification Signed-off-by: Krille --- .github/workflows/matrix_notification.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/matrix_notification.yaml b/.github/workflows/matrix_notification.yaml index 730272e81..4778e7739 100644 --- a/.github/workflows/matrix_notification.yaml +++ b/.github/workflows/matrix_notification.yaml @@ -14,14 +14,13 @@ jobs: - name: Send Matrix Notification env: MATRIX_URL: https://matrix.org/_matrix/client/v3/rooms/${{ secrets.MATRIX_MANAGEMENT_ROOM }}/send/m.room.message - MATRIX_ACCESS_TOKEN: ${{ secrets.MATRIX_BOT_TOKEN }} run: | if [ "${{ github.event.action }}" == "opened" ]; then PAYLOAD="{\"msgtype\": \"m.text\", \"body\": \"New Issue Created: ${{ github.event.issue.title }}\\nCreated by: ${{ github.event.issue.user.login }}\\n${{ github.event.issue.body }}\\nURL: ${{ github.event.issue.html_url }}\"}" elif [ "${{ github.event.action }}" == "created" ]; then PAYLOAD="{\"msgtype\": \"m.text\", \"body\": \"New Comment from ${{ github.event.comment.user.login }}\\n${{ github.event.comment.body }}\\nURL: ${{ github.event.comment.html_url }}\"}" fi - curl -XPOST -H "Authorization: Bearer $MATRIX_ACCESS_TOKEN" \ + curl -XPOST -H "Authorization: Bearer ${{ secrets.MATRIX_BOT_TOKEN }}" \ -H "Content-Type: application/json" \ -d "$PAYLOAD" \ $MATRIX_URL