From 2eded812aec813044a940a6c05b10b5a7a1af0ab Mon Sep 17 00:00:00 2001 From: Samantha Dawley Date: Thu, 17 Aug 2023 15:56:19 -0400 Subject: [PATCH] 22407 - Remove Mattermost notification eclipse/che#22407 Comment out the mattermost notification so it doesn't fail the release workflow, but leaving it in the file so I remember to replace it. --- .github/workflows/image-publish.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/image-publish.yml b/.github/workflows/image-publish.yml index 927e4bfb371..463264e841e 100644 --- a/.github/workflows/image-publish.yml +++ b/.github/workflows/image-publish.yml @@ -90,21 +90,21 @@ jobs: run: | BRANCH_NAME=${{ github.ref }} echo "BRANCH_NAME=${BRANCH_NAME##*/}" >> $GITHUB_ENV - - name: Create failure MM message - if: contains(join(needs.*.result, ','), 'failure') - run: | - echo "{\"text\":\":no_entry_sign: Che Code ${{ env.BRANCH_NAME }} release has failed: https://github.com/che-incubator/che-code/actions/workflows/image-publish.yml\"}" > mattermost.json - - name: Create success MM message - run: | - echo "{\"text\":\":white_check_mark: Che Code ${{ env.BRANCH_NAME }} has been released: https://quay.io/che-incubator/che-code:${{ env.BRANCH_NAME }}\"}" > mattermost.json - - name: Send MM message + #- name: Create failure MM message + #if: contains(join(needs.*.result, ','), 'failure') + #run: | + #echo "{\"text\":\":no_entry_sign: Che Code ${{ env.BRANCH_NAME }} release has failed: https://github.com/che-incubator/che-code/actions/workflows/image-publish.yml\"}" > mattermost.json + #- name: Create success MM message + #run: | + #echo "{\"text\":\":white_check_mark: Che Code ${{ env.BRANCH_NAME }} has been released: https://quay.io/che-incubator/che-code:${{ env.BRANCH_NAME }}\"}" > mattermost.json + #- name: Send MM message # don't notify for cancelled builds - if: success() || failure() - uses: mattermost/action-mattermost-notify@1.1.0 - env: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - MATTERMOST_CHANNEL: eclipse-che-releases - MATTERMOST_USERNAME: che-bot + #if: success() || failure() + #uses: mattermost/action-mattermost-notify@1.1.0 + #env: + #MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + #MATTERMOST_CHANNEL: eclipse-che-releases + #MATTERMOST_USERNAME: che-bot dev: name: dev runs-on: ubuntu-22.04