Skip to content

Commit

Permalink
Update build-test.yml , add wecom webhook notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
DefiedParty authored Mar 2, 2024
1 parent 4b8cbc9 commit a7bf97a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Send start notification to WeCom
uses: distributhor/workflow-webhook@v1
with:
url: ${{ secrets.WECHAT_WEBHOOK_URL }}
data: '{"msgtype":"text","text":{"content":"NYIST/netboot 测试构建已开始🚀"}}'

- name: Build the Docker image
run: docker build -t localbuild -f Dockerfile .

Expand All @@ -33,3 +40,9 @@ jobs:
with:
name: buildout-artifact
path: buildout/buildout.zip

- name: Send end notification to WeCom
uses: distributhor/workflow-webhook@v1
with:
url: ${{ secrets.WECHAT_WEBHOOK_URL }}
data: '{"msgtype":"text","text":{"content":"NYIST/netboot 测试构建成功✨"}}'

0 comments on commit a7bf97a

Please sign in to comment.