Skip to content

Commit 54a6d17

Browse files
authored
Merge pull request #89 from rocky-linux/notifications
re-enable notifications
2 parents 7b21154 + 85955ef commit 54a6d17

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/staging.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,26 @@ jobs:
104104
# echo "⏰ Expires: 7 days"
105105
# echo "🔗 Access via your configured staging domain/collection selector"
106106
107+
- name: Notify documentation channel about deployment Success
108+
uses: mattermost/action-mattermost-notify@master
109+
if: success() && !cancelled()
110+
with:
111+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
112+
MATTERMOST_CHANNEL: documentation
113+
TEXT: |
114+
[Deployment](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) was completed :white_check_mark:
115+
MATTERMOST_USERNAME: "Github"
116+
117+
- name: Notify documentation channel about deployment Failure
118+
uses: mattermost/action-mattermost-notify@master
119+
if: failure() && !cancelled()
120+
with:
121+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
122+
MATTERMOST_CHANNEL: documentation
123+
TEXT: |
124+
[Deployment](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed :x:
125+
MATTERMOST_USERNAME: "Github"
126+
107127
auto-promote:
108128
name: Auto-promote to Production
109129
needs: [build, deploy]

0 commit comments

Comments
 (0)