From 9aeb793f011248bb5c64ea82adb929446af811d7 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 15 Oct 2025 16:45:39 +0300 Subject: [PATCH] test --- .gitea/actions/vk-notify/action.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/actions/vk-notify/action.yaml b/.gitea/actions/vk-notify/action.yaml index a5ad27c..5f033de 100644 --- a/.gitea/actions/vk-notify/action.yaml +++ b/.gitea/actions/vk-notify/action.yaml @@ -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