diff --git a/.github/workflows/build-bundle.yml b/.github/workflows/build-bundle.yml index 4ef2651e5d..6365ba93cb 100644 --- a/.github/workflows/build-bundle.yml +++ b/.github/workflows/build-bundle.yml @@ -84,8 +84,10 @@ jobs: uses: mattermost/action-mattermost-notify@master with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }} + MATTERMOST_CHANNEL: bot-alerts-cicd TEXT: | - ❌ *[PENPOT] Error during the execution of the job* + ❌ 📦 *[PENPOT] Error building penpot bundles.* 📄 Triggered from ref: `${{ steps.vars.outputs.gh_ref }}` Bundle version: `${{ steps.vars.outputs.bundle_version }}` 🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + @infra diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 4665e618a9..1b6cea1e9e 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -99,3 +99,15 @@ jobs: tags: ${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.gh_ref }} cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache,mode=max + + - name: Notify Mattermost + if: failure() + uses: mattermost/action-mattermost-notify@master + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }} + MATTERMOST_CHANNEL: bot-alerts-cicd + TEXT: | + ❌ 🐳 *[PENPOT] Error building penpot docker images.* + 📄 Triggered from ref: `${{ steps.vars.outputs.gh_ref }}` + 🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + @infra diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d72ceb2d0a..223c01de68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,3 +93,15 @@ jobs: tag_name: ${{ steps.vars.outputs.gh_ref }} name: ${{ steps.vars.outputs.gh_ref }} body: ${{ steps.extract_release_notes.outputs.release_notes }} + + - name: Notify Mattermost + if: failure() + uses: mattermost/action-mattermost-notify@master + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK }} + MATTERMOST_CHANNEL: bot-alerts-cicd + TEXT: | + ❌ 🚀 *[PENPOT] Error releasing penpot.* + 📄 Triggered from ref: `${{ steps.vars.outputs.gh_ref }}` + 🔗 Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + @infra