Update deploy.yml

master
绝弹 2024-01-15 21:49:21 +08:00 committed by GitHub
parent 61f5bc6146
commit 6cbd596f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -30,10 +30,17 @@ jobs:
git commit -m "Build through github action" git commit -m "Build through github action"
git push -f "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" master:gh-pages 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: 推送到企微 - name: 推送到企微
uses: appnify/action-wechat-work@master uses: appnify/action-wechat-work@master
env: env:
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提交消息${{ git log --format=%B -n 1 ${{ github.sha }} }}\n提交哈希${{ github.sha }}\n已有提交推送到仓库请关注构建结果。" content: ${{ steps.exec_cmd.outputs.output }}