Update deploy.yml

master
绝弹 2024-01-15 22:23:34 +08:00 committed by GitHub
parent 3dd78b1b24
commit 40bb7edbd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -40,9 +40,10 @@ jobs:
- name: 构建消息
id: exec_cmd
run: |
OUTPUT=$(git log --format=%B -n 1 ${{ github.sha }})
MSG="推送通知\n\n提交消息$OUTPUT\n提交哈希${{ github.sha }}\n已有提交推送到仓库请关注构建结果。"
echo "output=$MSG" >> "$GITHUB_OUTPUT"
MSG=$(git log --format=%B -n 1 ${{ github.sha }})
echo "msg=$MSG" >> "$GITHUB_OUTPUT"
HASH="${{ github.sha }}"
echo "hash=${$HASH:0:7}" >> "$GITHUB_OUTPUT"
shell: bash
- name: 推送到企微
@ -51,4 +52,4 @@ jobs:
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
with:
msgtype: text
content: "${{ steps.exec_cmd.outputs.output }}"
content: "推送通知\n\n提交消息${{ steps.exec_cmd.outputs.msg }}\n提交哈希${{ steps.exec_cmd.outputs.hash }}\n已有提交推送到仓库请关注构建结果。"