From e8a9c3db8abd0de56d8078002198739b6240b9f1 Mon Sep 17 00:00:00 2001 From: Miguel Ruiz Date: Mon, 10 Feb 2025 11:38:57 +0100 Subject: [PATCH] github-actions: Add gchat notification (#126) Signed-off-by: Miguel Ruiz --- .github/workflows/cd-pipeline.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd-pipeline.yml b/.github/workflows/cd-pipeline.yml index 0f54358..f376a67 100644 --- a/.github/workflows/cd-pipeline.yml +++ b/.github/workflows/cd-pipeline.yml @@ -30,4 +30,15 @@ jobs: - name: Publish run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + notify: + name: Send notification + needs: + - publish + if: ${{ always() && needs.publish.result == 'failure' }} + uses: bitnami/support/.github/workflows/gchat-notification.yml@main + with: + workflow: ${{ github.workflow }} + job-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + secrets: + webhook-url: ${{ secrets.GCHAT_CONTENT_ALERTS_WEBHOOK_URL }}