Skip to content

Commit 87815d0

Browse files
committed
fix: replace Telegram action with curl command for sending messages in build workflow
1 parent 403ad8e commit 87815d0

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ jobs:
1010

1111
steps:
1212
- name: Send start message to Telegram
13-
uses: appleboy/telegram-action@master
14-
with:
15-
to: ${{ secrets.CHAT_ID }}
16-
token: ${{ secrets.BOT_TOKEN }}
17-
message: |
18-
Build started for commit ${{ github.sha }}
19-
Commit message: ${{ github.event.head_commit.message }}
13+
run: |
14+
MESSAGE="Build started for commit ${{ github.sha }}
15+
Commit message: ${{ github.event.head_commit.message }}"
16+
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \
17+
-d chat_id="${TELEGRAM_CHAT_ID}" \
18+
--data-urlencode "text=${MESSAGE}"
2019
2120
- uses: actions/checkout@v4
2221

@@ -68,12 +67,11 @@ jobs:
6867
# mv app-universal-release.apk Tech_Triangle-nightly-universal.apk
6968

7069
- name: Send message to Telegram
71-
uses: appleboy/telegram-action@master
72-
with:
73-
to: ${{ secrets.CHAT_ID }}
74-
token: ${{ secrets.BOT_TOKEN }}
75-
message: |
76-
${{github.event.head_commit.message}}
70+
run: |
71+
MESSAGE="${{ github.event.head_commit.message }}"
72+
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \
73+
-d chat_id="${TELEGRAM_CHAT_ID}" \
74+
--data-urlencode "text=${MESSAGE}"
7775
7876
- name: Send APKs to Telegram
7977
run: |

0 commit comments

Comments
 (0)