Skip to content

Commit

Permalink
chore: noversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed Oct 4, 2024
1 parent 278f069 commit 74b7490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/notificaion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ jobs:
ISSUE_URL="${{ github.event.issue.html_url }}"
ISSUE_AUTHOR="${{ github.event.issue.user.login }}"
MESSAGE="🆕 New Issue Created!\n\n*Title*: $ISSUE_TITLE\n*Description*: $ISSUE_BODY\n*Author*: $ISSUE_AUTHOR\n[View Issue]($ISSUE_URL)"
MESSAGE="🆕 New Issue Created!\n\n**Title**: $ISSUE_TITLE\n**Description**: $ISSUE_BODY\n**Author**: $ISSUE_AUTHOR\n[View Issue]($ISSUE_URL)"
echo "$MESSAGE" > message.txt
- name: Send Message to Telegram
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ vars.TELEGRAM_CHAT_ID }}
TELEGRAM_TOPIC_ID: ${{ vars.TELEGRAM_TOPIC_ID }}
TELEGRAM_TOPIC_ID: ${{ vars.TELEGRAM_TOPIC_ID }} # If you're using a topic in Telegram
run: |
MESSAGE=$(cat message.txt)
curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_TOKEN/sendMessage" \
-d reply_to_message_id=$TELEGRAM_TOPIC_ID \
-d chat_id=$TELEGRAM_CHAT_ID \
-d message_thread_id=$TELEGRAM_TOPIC_ID \
-d text="$MESSAGE" \
-d parse_mode="Markdown"

0 comments on commit 74b7490

Please sign in to comment.