Update deploy.yml
parent
61f5bc6146
commit
6cbd596f9f
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue