From 8fde44d17b3ba8516f6a6e84aeb7d1f300b65736 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Mon, 11 Sep 2023 09:49:47 +0200 Subject: [PATCH] chore: Remove mattermost notifications (#2740) Signed-off-by: Anatolii Bazko --- .github/workflows/release-announce.yml | 16 +--------------- .../release-build-and-push-to-GH-releases.yml | 14 -------------- .github/workflows/release.yml | 15 +-------------- 3 files changed, 2 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release-announce.yml b/.github/workflows/release-announce.yml index 072f9763d..3f040801c 100644 --- a/.github/workflows/release-announce.yml +++ b/.github/workflows/release-announce.yml @@ -10,7 +10,7 @@ # Red Hat, Inc. - initial API and implementation # -name: Release - announce in mattermost +name: Release on: # Trigger the workflow on tag creation only push: @@ -39,17 +39,3 @@ jobs: else echo "MM_ANNOUNCE=false" >> "$GITHUB_ENV" fi - - name: Create success MM message - run: | - echo "{\"text\":\":white_check_mark: Chectl ${{ steps.TAG_UTIL.outputs.chectl_version }} released! https://github.com/che-incubator/chectl/releases${{ steps.TAG_UTIL.outputs.gh_tag }}\"}" > mattermost.json - - name: Create failure message - if: ${{ failure() }} - run: | - echo "{\"text\":\":che-logo: Problem with chectl ${{ steps.TAG_UTIL.outputs.chectl_version }} release!\n\n \"}" > mattermost.json - - name: Send MM message - if: ${{ env.MM_ANNOUNCE == 'true' }} - uses: mattermost/action-mattermost-notify@1.0.2 - env: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - MATTERMOST_CHANNEL: eclipse-che-releases - MATTERMOST_USERNAME: che-bot diff --git a/.github/workflows/release-build-and-push-to-GH-releases.yml b/.github/workflows/release-build-and-push-to-GH-releases.yml index 57cc0fa85..ddae805d1 100644 --- a/.github/workflows/release-build-and-push-to-GH-releases.yml +++ b/.github/workflows/release-build-and-push-to-GH-releases.yml @@ -81,17 +81,3 @@ jobs: BRANCH: gh-pages FOLDER: gh-pages CLEAN: true # Automatically remove deleted files from the deploy branch - - name: Create success MM message - run: | - echo "{\"text\":\":white_check_mark: Chectl ${{ steps.TAG_UTIL.outputs.chectl_version }} released: https://github.com/che-incubator/chectl/releases${{ steps.TAG_UTIL.outputs.gh_tag }}\"}" > mattermost.json - - name: Create failure message - if: ${{ failure() }} - run: | - echo "{\"text\":\":che-logo: Problem with chectl ${{ steps.TAG_UTIL.outputs.chectl_version }} release.\n\n \"}" > mattermost.json - - name: Send MM message - if: ${{ env.MM_ANNOUNCE == 'true' }} - uses: mattermost/action-mattermost-notify@1.0.2 - env: - MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - MATTERMOST_CHANNEL: eclipse-che-releases - MATTERMOST_USERNAME: che-bot diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1136f681..9355f39f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,17 +70,4 @@ jobs: else ./make-release.sh --version ${{ github.event.inputs.version }} --devworkspace-operator-version ${DWO_VERSION} fi - - name: Create failure MM message - if: ${{ failure() }} - run: | - echo "{\"text\":\":no_entry_sign: Chectl ${{ github.event.inputs.version }} release PR creation failed: https://github.com/che-incubator/chectl/actions/workflows/release.yml\"}" > mattermost.json - - name: Create success MM message - run: | - echo "{\"text\":\":white_check_mark: Chectl ${{ github.event.inputs.version }} release PR has been created: https://github.com/che-incubator/chectl/pulls?q=is%3Aopen+is%3Apr+${{ github.event.inputs.version }}\"}" > mattermost.json - - name: Send MM message - 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 +