From 2e92164bbf13a15a3ebbf08ba56ffe076a0d5f40 Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Sat, 22 Nov 2025 19:01:35 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D1=81=D0=B8=D0=BD=D1=82=D0=B0=D0=BA=D1=81?= =?UTF-8?q?=D0=B8=D1=81=20YAML=20=D0=B2=20Drone=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Заменён headers.Content-Type на content_type в webhook настройках - Исправлена ошибка 'cannot unmarshal !!map into string' на строке 126 - Применено для всех webhook уведомлений (success, failure, deploy) --- .drone.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index e6421e3..71ab3a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -137,8 +137,7 @@ steps: settings: urls: - https://discord.com/api/webhooks/YOUR_WEBHOOK_URL # Замените на ваш webhook - headers: - Content-Type: application/json + content_type: application/json template: | { "content": "✅ **Build Success** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}" @@ -156,8 +155,7 @@ steps: settings: urls: - https://discord.com/api/webhooks/YOUR_WEBHOOK_URL # Замените на ваш webhook - headers: - Content-Type: application/json + content_type: application/json template: | { "content": "❌ **Build Failed** - Lottery Bot\n**Branch:** {{build.branch}}\n**Commit:** {{build.commit}}\n**Build:** #{{build.number}}\n**Author:** {{build.author}}\n**Logs:** {{build.link}}" @@ -237,8 +235,7 @@ steps: settings: urls: - https://discord.com/api/webhooks/YOUR_WEBHOOK_URL # Замените на ваш webhook - headers: - Content-Type: application/json + content_type: application/json template: | { "content": "🚀 **Deployment Complete** - Lottery Bot\n**Environment:** Staging\n**Build:** #{{build.number}}\n**Commit:** {{build.commit}}"