-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22407 - Remove Mattermost notification (#1755)
eclipse-che/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.
- Loading branch information
Showing
1 changed file
with
14 additions
and
20 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 |
---|---|---|
|
@@ -104,7 +104,6 @@ jobs: | |
run: | | ||
git checkout ${{ github.event.inputs.version}} | ||
docker pull quay.io/eclipse/che-plugin-registry:${{ github.event.inputs.version}} | ||
echo MM_MESSAGE_APPEND='${{ env.MM_MESSAGE_APPEND }} \n Pulled existing image from https://quay.io/eclipse/che-plugin-registry:${{ github.event.inputs.version }}.' >> $GITHUB_ENV | ||
- name: Perform release | ||
if: ${{ github.event.inputs.performRelease == 'true' }} | ||
run: | | ||
|
@@ -114,7 +113,6 @@ jobs: | |
export GITHUB_TOKEN=${{ secrets.CHE_BOT_GITHUB_TOKEN }} | ||
./make-release.sh --version ${{ github.event.inputs.version}} --trigger-release | ||
echo MM_MESSAGE_APPEND='${{ env.MM_MESSAGE_APPEND }} \n Performed tagging and container build of new image https://quay.io/eclipse/che-plugin-registry:${{ github.event.inputs.version }}.' >> $GITHUB_ENV | ||
- name: Prepare mattermost message | ||
run: | ||
echo "{\"text\":\"Release has been performed\"}" > mattermost.json | ||
|
@@ -134,8 +132,6 @@ jobs: | |
export BUILD_DIR="$PWD/content" | ||
export GH_PAGES_DIR="$PWD/gh-pages" | ||
./build/dev/publish-plugin-registry-to-gh-pages.sh | ||
echo MM_MESSAGE_APPEND='${{ env.MM_MESSAGE_APPEND }} \n Published plugin registry to GitHub Pages https://github.com/eclipse-che/che-plugin-registry/tree/gh-pages/${{ github.event.inputs.version }}.' >> $GITHUB_ENV | ||
- name: publish to npmjs | ||
if: ${{ github.event.inputs.publishToNpmJs == 'true' }} | ||
env: | ||
|
@@ -145,19 +141,17 @@ jobs: | |
BUILDER=docker SKIP_FORMAT=true SKIP_LINT=true SKIP_TEST=true ./build.sh --tag "${{ github.event.inputs.version}}" | ||
cd tools/build | ||
npm publish --tag latest | ||
echo MM_MESSAGE_APPEND='${{ env.MM_MESSAGE_APPEND }} \n Published package to npmjs https://www.npmjs.com/package/@eclipse-che/plugin-registry-generator/v/${{ github.event.inputs.version }}.' >> $GITHUB_ENV | ||
- name: Create failure MM message | ||
if: ${{ failure() }} | ||
run: | | ||
echo "{\"text\":\":no_entry_sign: Che Plugin Registry image and generator ${{ github.event.inputs.version }} release has failed: https://github.com/eclipse-che/che-plugin-registry/actions/workflows/release.yml. ${MM_MESSAGE_APPEND}\"}" > mattermost.json | ||
- name: Create success MM message | ||
run: | | ||
echo "{\"text\":\":white_check_mark: Che Plugin Registry image and generator ${{ github.event.inputs.version }} release job is complete: ${MM_MESSAGE_APPEND}\"}" > 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 | ||
#- name: Create failure MM message | ||
#if: ${{ failure() }} | ||
#run: | | ||
#echo "{\"text\":\":no_entry_sign: Che Plugin Registry image and generator ${{ github.event.inputs.version }} release has failed: https://github.com/eclipse-che/che-plugin-registry/actions/workflows/release.yml. ${MM_MESSAGE_APPEND}\"}" > mattermost.json | ||
#- name: Create success MM message | ||
#run: | | ||
#echo "{\"text\":\":white_check_mark: Che Plugin Registry image and generator ${{ github.event.inputs.version }} release job is complete: ${MM_MESSAGE_APPEND}\"}" > 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 |