Skip to content

Commit

Permalink
rename release-send-mattermost-announcement to release-announce (#84)
Browse files Browse the repository at this point in the history
Change-Id: I3f0794703155802ca68e9dddb22f007eba330b25

Signed-off-by: Nick Boldt <nboldt@redhat.com>
  • Loading branch information
nickboldt committed Oct 13, 2023
1 parent c56361a commit 529159f
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This Workflow announces a release in Eclipse Mattermost to https://mattermost.eclipse.org/eclipse/channels/eclipse-che-releases
name: Release - Send mattermost notification
name: Release - Send notification
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -28,15 +28,18 @@ jobs:
run: |
milestone=${{ github.event.inputs.version }}
milestone=${milestone%.*}; echo "milestone: ${milestone}"
echo "{\"text\":\":che-logo: Che ${{ github.event.inputs.version }} has been released.\n\n Please resolve or move unresolved issues assigned to this milestone: https://github.com/eclipse/che/milestones/${milestone}\"}"
echo "{\"text\":\":che-logo: Che ${{ github.event.inputs.version }} has been released.\n\n Please resolve or move unresolved issues assigned to this milestone: https://github.com/eclipse/che/milestones/${milestone}\"}" > mattermost.json
- name: Create failure message
if: ${{ failure() }}
run: |
echo "{\"text\":\":che-logo: Che ${{ github.event.inputs.version }} release final checks have failed:\n\n failed: https://github.com/eclipse-che/che-release/actions/workflows/release-send-mattermost-announcement.yml.\"}"
echo "{\"text\":\":che-logo: Che ${{ github.event.inputs.version }} release final checks have failed:\n\n failed: https://github.com/eclipse-che/che-release/actions/workflows/release-send-mattermost-announcement.yml.\"}" > mattermost.json
- name: Send 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
# TODO send to slack as MM no longer exists
# - name: Send 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

0 comments on commit 529159f

Please sign in to comment.