feat: migration to unplugin-vue-router #39
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: Github to Telegram Notifier | |
on: | |
push: | |
pull_request: | |
types: [opened, closed, reopened] | |
issues: | |
types: [opened, pinned, closed, reopened] | |
jobs: | |
notifier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify on push | |
if: ${{ github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip notifier]') }} | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
📢 ${{ github.actor }} pushed a commit: | |
- Message: ${{ github.event.commits[0].message }} | |
- Repository: ${{ github.repository }} | |
🔗 [View Changes](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) | |
- name: Notify on pull request | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
🔄 ${{ github.actor }} ${{ github.event.action }} pull request | |
- Action: ${{ github.event.action }} | |
- Title: ${{ github.event.pull_request.title }} | |
- PR URL: ${{ github.event.pull_request.html_url }} | |
Repository: ${{ github.repository }} | |
- name: Notify on issue | |
if: ${{ github.event_name == 'issues' }} | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
📝 ${{ github.actor }} ${{ github.event.action }} issue | |
- Action: ${{ github.event.action }} | |
- Title: ${{ github.event.issue.title }} | |
- URL: ${{ github.event.issue.html_url }} | |
Repository: ${{ github.repository }} |