This commit is contained in:
2025-04-17 14:36:06 +03:00
parent 6480491205
commit 3fa02db9d3
3 changed files with 29 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ inputs:
required: true
runs:
using: 'composite'
steps:
- run: "echo a: Set up QEMU2"

View File

@@ -0,0 +1,26 @@
name: 'notify'
description: 'notify'
inputs:
result:
required: false
default: "failure"
type: string
name:
required: false
type: string
default: build
env:
icons: '{"success" : ":white_check_mark:", "failure": ":x:", "canceled": ":facepalm:", "started": ":warning:"}'
runs:
using: 'composite'
steps:
- uses: mattermost/action-mattermost-notify@master
with:
MATTERMOST_WEBHOOK_URL: ${{ 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]}}"
}