Send notification in Mattermost when nightly build fails (#19676)

7.30.x
Mykhailo Kuznietsov 2021-04-26 16:41:13 +03:00 committed by GitHub
parent 8602cd7373
commit 9171efbd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -61,4 +61,14 @@ jobs:
./dockerfiles/che/build.sh --dockerfile:"rhel.Dockerfile" --tag:"rhel-nightly"
- name: Push ubi8 Che Server image
run:
docker push quay.io/eclipse/che-server:rhel-nightly
docker push quay.io/eclipse/che-server:rhel-nightly
- name: Create failure MM message
if: ${{ failure() }}
run: |
echo "{\"text\":\":no_entry_sign: Nightly Che Server build has failed: https://github.com/eclipse/che/actions/workflows/nightly-build.yml\"}" > mattermost.json
if: ${{ failure() }}
uses: mattermost/action-mattermost-notify@1.0.2
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: eclipse-che-ci
MATTERMOST_USERNAME: che-bot