add telegram notification

This commit is contained in:
Alexey 2020-11-09 18:42:43 +03:00
parent fd15df068d
commit eee0c9f9d2

16
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set short SHA
id: vars
run: echo "::set-output name=sha_short::$(echo ${GITHUB_SHA:0:7})"
- name: Telegram Notification
uses: appleboy/telegram-action@0.0.7
with:
message: ${{ env.GITHUB_ACTOR }} just pushed commit a [${{ steps.vars.outputs.sha_short }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) to [${{ steps.vars.outputs.repo_name }}](https://github.com/${{ github.repository }})
format: markdown
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}