Update deploy.yml
parent
3dd78b1b24
commit
40bb7edbd0
|
|
@ -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已有提交推送到仓库,请关注构建结果。"
|
||||
|
|
|
|||
Loading…
Reference in New Issue