This commit is contained in:
2024-12-23 14:56:40 +03:00
parent f895be1ab2
commit f331bff246

View File

@@ -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]}}"
}