-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove mattermost notifications (#2740)
Signed-off-by: Anatolii Bazko <[email protected]>
- Loading branch information
Showing
3 changed files
with
2 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
env: | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | ||
MATTERMOST_CHANNEL: eclipse-che-releases | ||
MATTERMOST_USERNAME: che-bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
env: | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | ||
MATTERMOST_CHANNEL: eclipse-che-releases | ||
MATTERMOST_USERNAME: che-bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
env: | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | ||
MATTERMOST_CHANNEL: eclipse-che-releases | ||
MATTERMOST_USERNAME: che-bot | ||