From 7962db84f1848c865d0ebec4960f49ba49a6a14d Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Thu, 29 Jan 2026 21:11:02 +0800 Subject: [PATCH] Update upy.yml --- .github/workflows/upy.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/upy.yml b/.github/workflows/upy.yml index ef63efe9..54f91a55 100644 --- a/.github/workflows/upy.yml +++ b/.github/workflows/upy.yml @@ -78,3 +78,39 @@ jobs: DOGECLOUD_SECRET_KEY: ${{ secrets.DOGECLOUD_SECRET_KEY }} CDN_URL_LIST: ${{ secrets.CDN_URL_LIST }} 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 }}