Skip to content

Commit

Permalink
Create tele.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hglong16 authored Dec 12, 2023
1 parent 47dbe99 commit c4a6f34
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tele.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Telegram
on:
push:
branches: [main, master]
pull_request:
types: [opened, reopened, closed]
branches: [main, master]
jobs:
job:
if: ${{ !github.event.pull_request.merged }}
name: Build
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.CHATID }}
token: ${{ secrets.BOTTOKEN }}
message: |
${{ github.actor }} created #${{github.event.number}} on ${{ github.repository }}:
${{ github.event.head_commit.message }}
PR review: ${{github.event.pull_request.title}}
${{github.event.pull_request.body}}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
merge:
if: ${{ github.event.pull_request.merged }}
name: Build
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.CHATID }}
token: ${{ secrets.BOTTOKEN }}
message: |
${{ github.actor }} merged #${{github.event.number}} on ${{ github.repository }}

0 comments on commit c4a6f34

Please sign in to comment.