This commit is contained in:
2025-10-15 14:19:45 +03:00
parent febd2373d3
commit aa879e978c

View File

@@ -1,18 +1,15 @@
name: 'notify'
description: 'notify'
description: 'Send VK Teams notification'
inputs:
result:
required: false
default: "failure"
default: "failure"
type: string
name:
required: false
type: string
default: build
secrets:
required: false
type: string
token:
required: true
type: string
@@ -20,8 +17,6 @@ inputs:
required: true
type: string
runs:
using: 'composite'
steps:
@@ -37,11 +32,15 @@ runs:
*) echo "ICON=" >> $GITHUB_ENV ;;
esac
- uses: dosymep/vk-teams-action@v1.0.0
- name: Notify VK Teams
uses: dosymep/vk-teams-action@v1.0.0
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 }} ${{ env.ICON }}
*${{ github.repository }}* \- \[${{ inputs.name }}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) \
was *${{ inputs.result }}* by ${{ github.event.sender.login }} ${{ env.ICON }}
- name: Wait a bit (ensure send completes)
run: sleep 5