Skip to content

Commit edae4de

Browse files
authored
Update deploy.yml
1 parent 9aedd06 commit edae4de

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,18 @@ jobs:
5959
with:
6060
path: .vitepress/dist
6161

62-
- name: Post to a Slack channel
63-
uses: slackapi/slack-github-action@v2.0.0
62+
- name: send telegram message on push
63+
uses: appleboy/telegram-action@master
6464
with:
65-
method: chat.postMessage
66-
token: ${{ secrets.SLACK_BOT_TOKEN }}
67-
payload: |
68-
channel: ${{ secrets.SLACK_CHANNEL_ID }}
69-
text: "Greetings <@channel>!"
65+
to: ${{ secrets.TELEGRAM_TO }}
66+
token: ${{ secrets.TELEGRAM_TOKEN }}
67+
message: |
68+
${{ github.actor }} created commit:
69+
Commit message: ${{ github.event.commits[0].message }}
70+
71+
Repository: ${{ github.repository }}
72+
73+
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
7074
7175
deploy:
7276
environment:

0 commit comments

Comments
 (0)