Skip to content

Commit

Permalink
modify cd (#232)
Browse files Browse the repository at this point in the history
修改release.yml 测试自动部署消息
  • Loading branch information
yaojin3616 committed Jan 2, 2024
2 parents 73bd8a1 + 91f8e4e commit 7060a10
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:
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)"
- 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":"text","content":{"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 Expand Up @@ -130,5 +131,13 @@ jobs:
- name: Deploy Stage
uses: fjogeleit/http-request-action@v1
with:
timeout: 100000
url: 'https://bisheng.dataelem.com/deploy/cgi-bin/deploy_script.py'
method: 'GET'
method: 'GET'

- 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":"text","content":{"text":"release 部署成功"}}'

0 comments on commit 7060a10

Please sign in to comment.