From f331bff246fabe6864b902b88e3f2d5d45dcfa27 Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Mon, 23 Dec 2024 14:56:40 +0300 Subject: [PATCH] try --- .github/workflows/notify.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml index 74dfd05..833bd7e 100644 --- a/.github/workflows/notify.yaml +++ b/.github/workflows/notify.yaml @@ -1,5 +1,6 @@ name: notify - +env: + icons: '{"success" : "white_check_mark", "failure": "white_check_mark", "canceled": "", "start": ""}' on: workflow_call: inputs: @@ -15,6 +16,6 @@ jobs: MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} PAYLOAD: | { - "text": "${{ github.repository }} [build](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} :white_check_mark:" + "text": "${{ github.repository }} [${{ github.workflow }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} ${{ fromJson(env.icons)[inputs.result]}}" }