new_notify #29

Merged
alex merged 3 commits from new_notify into main 2025-10-15 11:20:22 +00:00
Showing only changes of commit aa879e978c - Show all commits

View File

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