From 6cbd596f9f977aa6f72c4307bd3e85336e7833aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=BC=B9?= <810335188@qq.com> Date: Mon, 15 Jan 2024 21:49:21 +0800 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2ed6574..8facdc6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,10 +30,17 @@ jobs: git commit -m "Build through github action" git push -f "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" master:gh-pages + - name: Execute command + id: exec_cmd + run: | + OUTPUT=$(git log --format=%B -n 1 ${{ github.sha }}) + echo "提交通知\n\n提交消息:$OUTPUT\n提交哈希:${{ github.sha }}\n已有提交推送到仓库,请关注构建结果。" + shell: bash + - name: 推送到企微 uses: appnify/action-wechat-work@master env: WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}} with: msgtype: text - content: "提交通知\n\n提交消息:${{ git log --format=%B -n 1 ${{ github.sha }} }}\n提交哈希:${{ github.sha }}\n已有提交推送到仓库,请关注构建结果。" + content: ${{ steps.exec_cmd.outputs.output }}