Update upy.yml

This commit is contained in:
Vaica committed 2026-01-29 21:11:02 +08:00
1 parent 5b7569fe40
commit 7962db84f1
1 file changed
+36
+36
View File
@@ -78,3 +78,39 @@ jobs:
DOGECLOUD_SECRET_KEY: ${{ secrets.DOGECLOUD_SECRET_KEY }} DOGECLOUD_SECRET_KEY: ${{ secrets.DOGECLOUD_SECRET_KEY }}
CDN_URL_LIST: ${{ secrets.CDN_URL_LIST }} CDN_URL_LIST: ${{ secrets.CDN_URL_LIST }}
run: python scripts/RefreshCDN.py run: python scripts/RefreshCDN.py
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')"
- name: Send deployment success notification
if: success()
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.qq.com
server_port: 465
secure: true
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: 部署成功通知 - ${{ github.repository }}
to: ${{ secrets.MAIL_USERNAME }}
from: GitHub Actions <${{ secrets.MAIL_USERNAME }}>
body: |
🎉 部署已成功完成!
📦 仓库信息
----------------------------------
仓库: ${{ github.repository }}
分支: ${{ github.ref_name }}
提交: ${{ github.sha }}
信息: ${{ github.event.head_commit.message }}
👤 触发信息
----------------------------------
触发人: ${{ github.actor }}
事件: ${{ github.event_name }}
工作流: ${{ github.workflow }}
时间: ${{ steps.date.outputs.date }}
🔗 详情链接
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}