Skip to content

Commit 1ed0045

Browse files
authored
Merge pull request #79 from rocky-linux/add-notifications
add notifications to workflow run
2 parents 53293cf + 1aee0ab commit 1ed0045

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,23 @@ jobs:
110110
project_directory: compute-js
111111
env:
112112
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
113+
114+
- name: Notify documentation channel about deployment Success
115+
uses: mattermost/action-mattermost-notify@master
116+
if: success() && !cancelled()
117+
with:
118+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
119+
MATTERMOST_CHANNEL: documentation
120+
TEXT: |
121+
[Deployment](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) was completed :white_check_mark:
122+
MATTERMOST_USERNAME: "Github"
123+
124+
- name: Notify documentation channel about deployment Failure
125+
uses: mattermost/action-mattermost-notify@master
126+
if: failure() && !cancelled()
127+
with:
128+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }}
129+
MATTERMOST_CHANNEL: documentation
130+
TEXT: |
131+
[Deployment](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed :x:
132+
MATTERMOST_USERNAME: "Github"

0 commit comments

Comments
 (0)