From 8120ba3cd7f365b9477f71c544b1fc490e0b2f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=BC=B9?= <810335188@qq.com> Date: Tue, 16 Jan 2024 14:15:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f2dc4f2..0d8a359 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,6 +42,8 @@ jobs: run: | MSG=$(git log --format=%B -n 1 ${{ github.sha }}) echo "msg=$MSG" >> "$GITHUB_OUTPUT" + HASH=$(git log -1 --pretty=format:%h) + echo "hash1=$MSG" >> "$GITHUB_ENV" shell: bash - name: 推送到企微 @@ -50,4 +52,4 @@ jobs: WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}} with: 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提醒:已有提交推送到仓库,请留意构建结果。"