diff --git a/.gitea/actions/telegram-message-escape/action.yaml b/.gitea/actions/telegram-message-escape/action.yaml index a5bc84e..0318365 100644 --- a/.gitea/actions/telegram-message-escape/action.yaml +++ b/.gitea/actions/telegram-message-escape/action.yaml @@ -23,7 +23,6 @@ runs: MSG="${MSG//-/\\-}" MSG="${MSG//./\\.}" MSG="${MSG//!/\\!}" - MSG="${MSG//\`/\\\\\\\`}" echo "result<> $GITHUB_OUTPUT echo "$MSG" >> $GITHUB_OUTPUT diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ce41a65..727894e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -110,13 +110,13 @@ jobs: --proxy "${PROXY_URL}" \ -d "chat_id=${TELEGRAM_CHAT}" \ -d "parse_mode=MarkdownV2" \ - -d "text=$SUCCESS_DEPLOY_MESSAGE" > /dev/null + -d "text='"'\$SUCCESS_DEPLOY_MESSAGE'"'" > /dev/null else curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \ --proxy "${PROXY_URL}" \ -d "chat_id=${TELEGRAM_CHAT}" \ -d "parse_mode=MarkdownV2" \ - -d "text=$FAILURE_DEPLOY_MESSAGE" > /dev/null + -d "text='"'\$FAILURE_DEPLOY_MESSAGE'"'" > /dev/null curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendDocument" \ --proxy "${PROXY_URL}" \ diff --git a/.gitea/workflows/test_telegram_deploy_bot.yaml b/.gitea/workflows/test_telegram_deploy_bot.yaml index e1fea00..c7cad06 100644 --- a/.gitea/workflows/test_telegram_deploy_bot.yaml +++ b/.gitea/workflows/test_telegram_deploy_bot.yaml @@ -36,5 +36,5 @@ jobs: --proxy "${PROXY_URL}" \ -d "chat_id=${TELEGRAM_CHAT}" \ -d "parse_mode=MarkdownV2" \ - -d "text=$MESSAGE" > /dev/null + -d "text='"'\$MESSAGE'"'" > /dev/null EOT \ No newline at end of file