🎈 perf: optimize performance #38
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: telegram-posts | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- source | |
paths: | |
- 'pages/posts/**' | |
jobs: | |
sendMsg: | |
name: Send Message | |
runs-on: ubuntu-latest | |
steps: | |
- uses: colutius/Telegram-Msg@main | |
with: | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
chatid: ${{ secrets.TELEGRAM_TO }} | |
message: | | |
💡 新文章在博客发布啦! | |
👤 提交人: ${{ github.event.commits[0].author.name }} (${{ github.event.commits[0].author.username }}) | |
📄 提交信息: ${{ github.event.commits[0].message }} | |
⚠️ 注意:由于 Service Worker 缓存原因,该文章可能不会立刻在博客上显示。您可以稍后再来查看,或者清除浏览器缓存。 | |
button: true | |
button_name: 👀 立即查看 👀 | |
button_url: https://lihaoyu.cn/ | |
is_notify: true | |
is_preview: true |