fix: auto deploy error (#1168)

* ci(workflows): fix auto deploy error

* ci(workflows): separate send feishu bot msg

* ci(workflows): send feishu message remove content text
This commit is contained in:
lyf-coder 2022-12-01 14:26:46 +08:00 committed by GitHub
parent d668aa0d92
commit 22f1b9b541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 18 deletions

View File

@ -82,21 +82,3 @@ jobs:
with: with:
name: image_tag name: image_tag
path: image/ path: image/
- name: text message
if: github.event_name == 'pull_request'
uses: foxundermoon/feishu-action@v2
with:
url: ${{ secrets.PR_FEISHU_BOT_WEBHOOK_URL }}
msg_type: text
content: |
text: |
地址:${{ github.event.pull_request.html_url }}
标题:${{ github.event.pull_request.title }}
内容:${{ github.event.pull_request.body }}
分支:${{ github.event.pull_request.head.ref }}
触发者:${{ github.triggering_actor }}
----------------------------------------------
正在自动部署环境-稍后访问地址http://${{ secrets.deploy_host }}:1${{ github.event.number }}
-----------------------------------------------
请及时更新任务系统的任务状态https://tasks.nocobase.com/

View File

@ -0,0 +1,28 @@
name: Auto send feishu bot msg
on:
workflow_run:
workflows: [ "Aliyun Container Registry" ]
types:
- "completed"
jobs:
send_feishu_bot_msg:
runs-on: ubuntu-latest
steps:
- name: pr deploy text message
if: github.event_name == 'pull_request'
uses: foxundermoon/feishu-action@v2
with:
url: ${{ secrets.PR_FEISHU_BOT_WEBHOOK_URL }}
msg_type: text
content: |
text: |
地址:${{ github.event.pull_request.html_url }}
标题:${{ github.event.pull_request.title }}
分支:${{ github.event.pull_request.head.ref }}
触发者:${{ github.triggering_actor }}
----------------------------------------------
正在自动部署环境-稍后访问地址http://${{ secrets.deploy_host }}:1${{ github.event.number }}
-----------------------------------------------
请及时更新任务系统的任务状态https://tasks.nocobase.com/