From d4060c0f78c0afeb4a52f8b5bbbd322b7162e872 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 20 Nov 2023 09:52:00 +0100 Subject: [PATCH] Add alerts --- .github/workflows/check-oss-contributor.yml | 22 ++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-oss-contributor.yml b/.github/workflows/check-oss-contributor.yml index c2ece9254a..f9bd54248e 100644 --- a/.github/workflows/check-oss-contributor.yml +++ b/.github/workflows/check-oss-contributor.yml @@ -8,9 +8,29 @@ on: - chore/run_oss_checks # TODO: remove jobs: - run: + run-checks: name: Publish server and worker docker images uses: ./.github/workflows/budibase_ci.yml with: run_as_oss: true secrets: inherit + + notify-error: + needs: ["run-checks"] + if: ${{ failure() }} + name: Notify error + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set commit SHA + id: set_sha + run: echo "::set-output name=sha::$(git rev-parse --short ${{ github.sha }})" + + - name: Notify error + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.PROD_DEPLOY_WEBHOOK_URL }} + embed-title: "[TEST] OSS checks failed in master" + content: "The OSS build is failing on master. SHA: ${{ steps.set_sha.outputs.sha }}, link: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"