Update deploy.yml

master
绝弹 2024-01-15 22:06:44 +08:00 committed by GitHub
parent 63746a8f5e
commit 85dfe6c43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -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: 推送到企微