new_notify #25

Merged
alex merged 3 commits from new_notify into main 2025-10-15 10:19:07 +00:00

View File

@@ -19,13 +19,23 @@ inputs:
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] }}
- name: Set icon
id: icon
shell: bash
run: |
case "${{ inputs.result }}" in
success) echo "ICON=✅" >> $GITHUB_ENV ;;
failure) echo "ICON=❌" >> $GITHUB_ENV ;;
canceled) echo "ICON=🤦" >> $GITHUB_ENV ;;
started) echo "ICON=⚠️" >> $GITHUB_ENV ;;
*) echo "ICON=" >> $GITHUB_ENV ;;
esac
- 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 }}