summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/notify-telegram-pr.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/notify-telegram-pr.yml b/.github/workflows/notify-telegram-pr.yml
new file mode 100644
index 0000000..be80d08
--- /dev/null
+++ b/.github/workflows/notify-telegram-pr.yml
@@ -0,0 +1,18 @@
+name: notify-telegram-pr
+
+on:
+ pull_request:
+ types: [opened, reopened]
+jobs:
+ build:
+ name: Notify Telegram
+ runs-on: ubuntu-latest
+ steps:
+ - name: send telegram message on PR opened
+ uses: appleboy/telegram-action@master
+ with:
+ to: ${{ secrets.TELEGRAM_TO }}
+ token: ${{ secrets.TELEGRAM_TOKEN }}
+ message: |
+ ${{ github.actor }} created PR ${{ github.event.pull_request.title }}
+ See changes: ${{ github.event.pull_request.html_url }}