Files
workflows/.gitea/actions/notify/action.yaml
2025-10-15 13:12:18 +03:00

32 lines
777 B
YAML

name: 'notify'
description: 'notify'
inputs:
result:
required: false
default: "failure"
type: string
name:
required: false
type: string
default: build
secrets:
required: false
type: string
runs:
using: 'composite'
steps:
- uses: dosymep/vk-teams-action@v1.0.0
env:
ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}'
with:
token: ${{ inputs.token }}
to: ${{ inputs.to }}
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] }}