From aff9a61919700fba4a95c72c176b0873a222e4c4 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:28:18 +0800 Subject: [PATCH] chore: notify in release build (#5817) --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ed6313dda..63d0432061 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -479,6 +479,24 @@ jobs: cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/af_build_cache:buildcache cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/af_build_cache:buildcache,mode=max + notify-failure: + runs-on: ubuntu-latest + needs: + - build-for-macOS-x86_64 + - build-for-windows + - build-for-linux + if: failure() + steps: + - uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + text: | + 🔴🔴🔴Workflow ${{ github.workflow }} in repository ${{ github.repository }} was failed 🔴🔴🔴. + fields: repo,message,author,eventName,ref,workflow + env: + SLACK_WEBHOOK_URL: ${{ secrets.RELEASE_SLACK_WEBHOOK }} + if: always() + notify-discord: runs-on: ubuntu-latest needs: