create issue workflows

This commit is contained in:
Your Name 2023-11-05 18:28:07 +02:00
parent 713f568016
commit dbc255cba7

24
.github/workflows/issues.yml vendored Normal file
View File

@ -0,0 +1,24 @@
on:
issues:
types: [opened, edited, reopened]
issue_comment:
types: [created, edited]
jobs:
send_telegram_message:
name: send telegram message
runs-on: ubuntu-latest
steps:
- name: send telegram message
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
Author: ${{ github.actor }}
Repository: ${{ github.repository }}
Event: ${{github.event.name}}
Issue: ${{ github.event.issue.number }}
See changes: https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}