File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments