From 85dfe6c43fae1076285edbf0f388004b54f30586 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 22:06:44 +0800 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cee41af..9dd46f2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,12 +30,19 @@ 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 + send: + runs-on: ubuntu-latest + + steps: + - name: 克隆代码 + uses: actions/checkout@v2 + + - name: 构建消息 id: exec_cmd run: | OUTPUT=$(git log --format=%B -n 1 ${{ github.sha }}) MSG="推送通知\n\n提交消息:$OUTPUT\n提交哈希:${{ github.sha }}\n已有提交推送到仓库,请关注构建结果。" - echo "::set-output name=output::$MSG" + echo "::set-output name=\"output::$MSG\"" shell: bash - name: 推送到企微