diff --git a/.gitea/actions/notify/action.yaml b/.gitea/actions/notify/action.yaml index 2a84c86..225b771 100644 --- a/.gitea/actions/notify/action.yaml +++ b/.gitea/actions/notify/action.yaml @@ -19,12 +19,13 @@ inputs: runs: using: 'composite' steps: - - uses: mattermost/action-mattermost-notify@master + - uses: dosymep/vk-teams-action@v1.0.0 env: - icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}' + ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}' with: - MATTERMOST_WEBHOOK_URL: ${{ fromJSON(inputs.secrets).MM_WEBHOOK_URL }} - PAYLOAD: | - { - "text": "${{ github.repository }} [${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was ${{ inputs.result }} by ${{ github.event.sender.login}} ${{ fromJson(env.icons)[inputs.result]}}" - } + token: ${{ fromJSON(inputs.secrets).VK_TEAMS_BOT_TOKEN }} + to: ${{ fromJSON(inputs.secrets).VK_TEAMS_CHAT_ID }} + format: MarkdownV2 + message: | + ${{ github.repository }} \[${{inputs.name}}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ fromJson(env.ICONS)[inputs.result] }} +