-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8e9fa2
commit 50ae1f7
Showing
1 changed file
with
0 additions
and
30 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 |
---|---|---|
|
@@ -74,33 +74,3 @@ jobs: | |
with: | ||
name: ${{matrix.version}}-snapshot | ||
path: "${{env.BUILD_DIR}}/bin/${{env.ARCHIVE_FILENAME}}" | ||
|
||
notify: | ||
name: Send Notification to Discord on Failure | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: none | ||
needs: # make sure the notification is sent AFTER the jobs you want included have completed | ||
- build | ||
if: failure() | ||
|
||
steps: | ||
- name: Setup Environmental Variables | ||
run: | | ||
echo "GIT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
echo "GIT_SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | ||
- name: Notify | ||
uses: rjstone/[email protected] | ||
with: | ||
severity: error | ||
description: | | ||
**Windows Build Failed** | ||
details: | | ||
- **Branch:** ${{env.GIT_BRANCH}} | ||
- **Pusher:** ${{github.event.pusher.name}} | ||
- **Author:** ${{github.event.head_commit.author.name}} | ||
- **Commit:** [${{github.repository}}/${{env.GIT_SHORT_SHA}}](${{github.server_url}}/${{ github.repository }}/commit/${{github.sha}}) | ||
- **Build Log:** [actions/runs/${{github.run_id}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) | ||
footer: CMaNGOS Developers Notified! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} |