浏览代码

build: Notify after build (#163)

Kroese 1 年之前
父节点
当前提交
d00e8b27b4
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      .github/workflows/build.yml

+ 12 - 0
.github/workflows/build.yml

@@ -92,3 +92,15 @@ jobs:
         uses: action-pack/bump@v2
         with:
           token: ${{ secrets.REPO_ACCESS_TOKEN }}
+      -
+        name: Send mail
+        uses: action-pack/send-mail@v1
+        with:
+          to: ${{secrets.MAILTO}}
+          from: Github Actions <${{secrets.MAILTO}}>
+          connection_url: ${{secrets.MAIL_CONNECTION}}
+          subject: Build of ${{ github.event.repository.name }} v${{ steps.meta.outputs.version }} completed
+          body: |
+              The build job of ${{ github.event.repository.name }} v${{ steps.meta.outputs.version }} was completed successfully! 
+              
+              See https://github.com/${{ github.repository }}/actions for more information.