mirror of
https://github.com/groldsf/obsidian_check_plugin.git
synced 2026-07-22 05:37:48 +00:00
fix3
This commit is contained in:
parent
ee9afacc67
commit
e4913536a5
1 changed files with 1 additions and 2 deletions
3
.github/workflows/tg_notify.yml
vendored
3
.github/workflows/tg_notify.yml
vendored
|
|
@ -25,7 +25,6 @@ jobs:
|
|||
TITLE="${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий' }}"
|
||||
URL="${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}"
|
||||
|
||||
# Escape backticks and parentheses for Markdown
|
||||
SAFE_TITLE=$(echo "$TITLE" | sed 's/`/\\`/g' | sed 's/(/\\(/g' | sed 's/)/\\)/g')
|
||||
|
||||
TEXT="*Событие в ${REPO}*\nТип: \`${EVENT_TYPE}\`\nДействие: \`${ACTION}\`\nЗаголовок: \`${SAFE_TITLE}\`\n[Открыть](${URL})"
|
||||
|
|
@ -34,4 +33,4 @@ jobs:
|
|||
https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage \
|
||||
-d chat_id="${TELEGRAM_CHAT_ID}" \
|
||||
-d parse_mode=Markdown \
|
||||
--data-urlencode text="${TEXT}"
|
||||
-d text="${TEXT}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue