Update main.yml
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -32,7 +32,12 @@ jobs:
|
||||
username: ${{ secrets.EMAIL_USER }}
|
||||
password: ${{ secrets.EMAIL_PASS }}
|
||||
subject: "推送仓库成功"
|
||||
body: "通知:有新的内容已推送到仓库「toutoukan」的main分支!!\n推送时间: $(date +'%Y-%m-%d %H:%M:%S')\n推送作者: $(git log -1 --pretty=format:'%an')\n提交信息: $(git log -1 --pretty=format:'%s')"
|
||||
body: |
|
||||
通知:有新的内容已推送到仓库「toutoukan」的 main 分支!!
|
||||
|
||||
推送时间: ${{ github.run_attempt || '未知时间' }}
|
||||
推送作者: ${{ github.actor }}
|
||||
提交信息: ${{ github.event.head_commit.message || '无提交信息' }}
|
||||
to: 1627832236@qq.com
|
||||
from: ${{ secrets.EMAIL_USER }}
|
||||
# 如果使用 SSL
|
||||
|
||||
Reference in New Issue
Block a user