feat: 添加企业微信通知
parent
652703f371
commit
8120ba3cd7
|
|
@ -42,6 +42,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
MSG=$(git log --format=%B -n 1 ${{ github.sha }})
|
MSG=$(git log --format=%B -n 1 ${{ github.sha }})
|
||||||
echo "msg=$MSG" >> "$GITHUB_OUTPUT"
|
echo "msg=$MSG" >> "$GITHUB_OUTPUT"
|
||||||
|
HASH=$(git log -1 --pretty=format:%h)
|
||||||
|
echo "hash1=$MSG" >> "$GITHUB_ENV"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: 推送到企微
|
- name: 推送到企微
|
||||||
|
|
@ -50,4 +52,4 @@ jobs:
|
||||||
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
|
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
|
||||||
with:
|
with:
|
||||||
msgtype: text
|
msgtype: text
|
||||||
content: "推送通知\n\n仓库名称:${{ github.repository }}\n提交用户:${{ github.actor }}\n提交消息:${{ steps.exec_cmd.outputs.msg }}\n提交哈希:${{ github.sha }}\n\n提醒:已有提交推送到仓库,请留意构建结果。"
|
content: "推送通知\n\n仓库名称:${{ github.repository }}\n提交用户:${{ github.actor }}\n提交消息:${{ steps.exec_cmd.outputs.msg }}\n提交哈希:${{ env.hash1 }}\n\n提醒:已有提交推送到仓库,请留意构建结果。"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue