27 lines
811 B
YAML
27 lines
811 B
YAML
env:
|
|
icons: '{"success" : ":white_check_mark:", "failure": ":cross_mark:", "canceled": ":facepalm:", "started": ":warning:"}'
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
result:
|
|
required: false
|
|
default: ${{ github.action_status }}
|
|
type: string
|
|
name:
|
|
required: false
|
|
type: string
|
|
default: build
|
|
jobs:
|
|
notify:
|
|
runs-on: ubuntu:latest
|
|
steps:
|
|
- uses: mattermost/action-mattermost-notify@master
|
|
with:
|
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
|
|
TEXT: |
|
|
${{ github.repository }}
|
|
[${{inputs.name}}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}
|
|
wass ${{ inputs.result }} ${{ fromJson(env.icons)[inputs.result]}}"
|
|
}
|
|
|