diff --git a/.github/workflows/build-publish-next.yml b/.github/workflows/next-build.yml similarity index 74% rename from .github/workflows/build-publish-next.yml rename to .github/workflows/next-build.yml index b56e61b62..c876462c2 100644 --- a/.github/workflows/build-publish-next.yml +++ b/.github/workflows/next-build.yml @@ -47,3 +47,14 @@ jobs: run: printf "//registry.npmjs.org/:_authToken=${{ secrets.CHE_NPM_AUTH_TOKEN }}\n" >> ~/.npmrc - name: Publish packages to npmjs run: yarn publish:next + - name: Create failure MM message + if: ${{ failure() }} + run: | + echo "{\"text\":\":no_entry_sign: Next Che Theia build has failed: https://github.com/eclipse-che/che-theia/actions/workflows/next-build.yml\"}" > mattermost.json + - name: Send MM message + if: ${{ failure() }} + uses: mattermost/action-mattermost-notify@1.1.0 + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + MATTERMOST_CHANNEL: eclipse-che-ci + MATTERMOST_USERNAME: che-bot