4 Commits

Author SHA1 Message Date
2e1a74b96c Merge pull request 'new_notify' (#41) from new_notify into main
Reviewed-on: #41
2025-10-15 13:46:51 +00:00
2daf21ea55 Merge branch 'main' into new_notify 2025-10-15 13:46:45 +00:00
2d6aa07554 Merge branch 'new_notify' of bb.hublab.ru:HUB/workflows into new_notify 2025-10-15 16:45:43 +03:00
9aeb793f01 test 2025-10-15 16:45:39 +03:00

View File

@@ -42,17 +42,11 @@ runs:
continue-on-error: true
run: |
echo "[DEBUG] Sending VK Teams notification..."
JSON_PAYLOAD=$(jq -n \
--arg token "${{ env.token }}" \
--arg to "${{ env.to }}" \
--arg fmt "MarkdownV2" \
--arg msg "*${{ github.repository }}* - [${{ inputs.name }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was *${{ inputs.result }}* by ${{ github.event.sender.login }} ${{ env.ICON }}" \
'{token: $token, chatId: $to, parseMode: $fmt, text: $msg}')
# Отправка запроса
curl -s -X POST "https://myteam.mail.ru/bot/v1/messages/sendText" \
-H "Content-Type: application/json" \
-d "$JSON_PAYLOAD"
curl -G "https://myteam.mail.ru/bot/v1/messages/sendText" \
--data-urlencode "token=${{ env.token }}" \
--data-urlencode "chatId=${{ env.to }}" \
--data-urlencode "parseMode=MarkdownV2" \
--data-urlencode "text=*${{ github.repository }}* - [${{ inputs.name }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was *${{ inputs.result }}* by ${{ github.event.sender.login }} ${{ env.ICON }}"
CODE=$?
if [ $CODE -ne 0 ]; then