summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bortolin <simonebortolin@users.noreply.github.com>2022-08-25 20:27:33 +0200
committerSimone Bortolin <simonebortolin@users.noreply.github.com>2022-12-19 23:08:25 +0100
commitf1a6bc7f2c76a1aef526688ace81854bcc471ab0 (patch)
treea12311e79c4eb9ece7256349d6e8e4ba6dc6ed28
parentRemove WebP generator plugin (diff)
downloadhack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.tar
hack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.tar.gz
hack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.tar.bz2
hack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.tar.lz
hack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.tar.xz
hack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.tar.zst
hack-gpon.github.io-f1a6bc7f2c76a1aef526688ace81854bcc471ab0.zip
-rw-r--r--.github/workflows/notify-telegram-pr.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/notify-telegram-pr.yml b/.github/workflows/notify-telegram-pr.yml
index be80d08..28a0637 100644
--- a/.github/workflows/notify-telegram-pr.yml
+++ b/.github/workflows/notify-telegram-pr.yml
@@ -1,7 +1,9 @@
name: notify-telegram-pr
on:
- pull_request:
+ pull_request_target:
+ types: [opened, reopened]
+ issues:
types: [opened, reopened]
jobs:
build:
@@ -9,10 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: send telegram message on PR opened
+ if: github.event.pull_request
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
+ if: github.event.issue
message: |
${{ github.actor }} created PR ${{ github.event.pull_request.title }}
See changes: ${{ github.event.pull_request.html_url }}
+ - name: send telegram message on issue opened
+ if: github.event.issue
+ uses: appleboy/telegram-action@master
+ with:
+ to: ${{ secrets.TELEGRAM_TO }}
+ token: ${{ secrets.TELEGRAM_TOKEN }}
+ if: github.event.issue
+ message: |
+ ${{ github.actor }} created issue ${{ github.event.issue.title }}
+ See issue: ${{ github.event.issue.html_url }}