Merge pull request #70 from JahongirHakimjonov/jahongir #212
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Telegram Notifications | |
on: | |
pull_request: | |
types: | |
[opened, closed, edited, ready_for_review, review_requested, reopened] | |
pull_request_review_comment: | |
types: [created] | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
notify: | |
name: Telegram Notification | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Notification to Telegram | |
uses: ethyaan/tgate-action@v1.0.0 # Ensure you're using a stable and tested version | |
if: always() # Ensures the notification runs regardless of job status | |
with: | |
token: ${{ secrets.TOKEN }} | |
to: ${{ secrets.CHAT_ID }} | |
disable_web_page_preview: true # Prevent previews for shared links | |
disable_notification: false # Sends notification with sound | |
status: ${{ job.status }} | |
event: ${{ github.event_name }} | |
actor: ${{ github.actor }} | |
repository: ${{ github.repository }} | |
workflow: ${{ github.workflow }} |