Skip to content

Commit

Permalink
modify cd (#233)
Browse files Browse the repository at this point in the history
更新release.yml 增加编译消息
  • Loading branch information
yaojin3616 committed Jan 2, 2024
2 parents 7060a10 + 191a8ec commit c5aa763
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
- name: get commit message
id: get_commit_message
run: |
echo "::set-output name=commit_message::$(git log -1 --pretty=%B)"
echo "::set-output name=commit_name::$(github.event.head_commit.author.username)"
echo "commit_message=$(git log -1 --pretty=%B)" >> "$GITHUB_OUTPUT"
echo "commit_name=$(github.event.head_commit.author.username)" >> "$GITHUB_OUTPUT"
- name: notify feishu
uses: fjogeleit/http-request-action@v1
with:
url: ' https://open.feishu.cn/open-apis/bot/v2/hook/2cfe0d8d-647c-4408-9f39-c59134035c4b'
method: 'POST'
data: '{"msg_type":"post","content":{"post":{"zh_cn":{"title": "${{steps.get_commit_message.outputs.commit_name}}提交代码,开始编译", "content": [[{"tag":"text","text":"提交内容${{steps.get_commit_message.outputs.commit_message}}}]]}}}}'
data: '{"msg_type":"post","content":{"post":{"zh_cn":{"title": "${{steps.get_commit_message.outputs.commit_name}}提交代码,开始编译", "content": [[{"tag":"text","text":"提交内容${{steps.get_commit_message.outputs.commit_message}}"}]]}}}}'

- name: checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit c5aa763

Please sign in to comment.