Skip to content

Commit

Permalink
Update cmangos-windows-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Redbu11dev authored and Redbu11 committed Aug 21, 2024
1 parent f8e9fa2 commit 50ae1f7
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/cmangos-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 50ae1f7

Please sign in to comment.