diff --git a/.github/workflows/pull-request-notify.yml b/.github/workflows/pull-request-notify.yml new file mode 100644 index 00000000..9c577bcd --- /dev/null +++ b/.github/workflows/pull-request-notify.yml @@ -0,0 +1,21 @@ +name: Notify PR events + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Notify to Telegrem + uses: appleboy/telegram-action@master + with: + to: ${{secrets.TELEGRAM_TO}} + token: ${{secrets.TELEGRAM_TOKEN}} + args: | + ${{ github.event.pull_request.html_url }} + Title: ${{github.event.pull_request.title}} + Author: ${{github.actor}} + Event: ${{ github.event_name }}