Skip to content

Commit

Permalink
Update ci.yml (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 authored Mar 3, 2024
2 parents d49c630 + 7e57b50 commit 1d4ab5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ jobs:
- name: Process git message
id: process_message
run: |
message=`echo "${{ github.event.head_commit.message }}" | sed 's/\r//g'`
echo "::set-output name=message::$message"
value=$(echo "${{ github.event.head_commit.message }}" | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/%0A/g')
echo "message=${value}" >> $GITHUB_ENV
shell: bash

- name: notify feishu
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.FEISHU_WEBHOOK }}
method: 'POST'
data: '{"msg_type":"post","content":{"post":{"zh_cn":{"title": "${{ steps.get_version.outputs.VERSION }}发布成功", "content": [{"tag":"text","text":"发布功能:"},{"tag":"text","text":"${{ steps.process_message.outputs.message }}"}]}}}}'
data: '{"msg_type":"post","content":{"post":{"zh_cn":{"title": "${{ steps.get_version.outputs.VERSION }}发布成功", "content": [[{"tag":"text","text":"发布功能:"},{"tag":"text","text":"${{ env.message }}"}]]}}}}'

0 comments on commit 1d4ab5d

Please sign in to comment.