Commit 50ae1f7 1 parent f8e9fa2 commit 50ae1f7 Copy full SHA for 50ae1f7
File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 74
74
with :
75
75
name : ${{matrix.version}}-snapshot
76
76
path : " ${{env.BUILD_DIR}}/bin/${{env.ARCHIVE_FILENAME}}"
77
-
78
- notify :
79
- name : Send Notification to Discord on Failure
80
- runs-on : ubuntu-20.04
81
- permissions :
82
- contents : none
83
- needs : # make sure the notification is sent AFTER the jobs you want included have completed
84
- - build
85
- if : failure()
86
-
87
- steps :
88
- - name : Setup Environmental Variables
89
- run : |
90
- echo "GIT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
91
- echo "GIT_SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
92
-
93
- - name : Notify
94
-
95
- with :
96
- severity : error
97
- description : |
98
- **Windows Build Failed**
99
- details : |
100
- - **Branch:** ${{env.GIT_BRANCH}}
101
- - **Pusher:** ${{github.event.pusher.name}}
102
- - **Author:** ${{github.event.head_commit.author.name}}
103
- - **Commit:** [${{github.repository}}/${{env.GIT_SHORT_SHA}}](${{github.server_url}}/${{ github.repository }}/commit/${{github.sha}})
104
- - **Build Log:** [actions/runs/${{github.run_id}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}})
105
- footer : CMaNGOS Developers Notified!
106
- webhookUrl : ${{ secrets.DISCORD_WEBHOOK }}
You can’t perform that action at this time.
0 commit comments