From 50ae1f73b39cc768fb3f5f015b8a2ebd39090101 Mon Sep 17 00:00:00 2001 From: Redbu11 <34152018+Redbu11dev@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:37:44 +0300 Subject: [PATCH] Update cmangos-windows-build.yml --- .github/workflows/cmangos-windows-build.yml | 30 --------------------- 1 file changed, 30 deletions(-) diff --git a/.github/workflows/cmangos-windows-build.yml b/.github/workflows/cmangos-windows-build.yml index 838f8dbcf..a68c7f37b 100644 --- a/.github/workflows/cmangos-windows-build.yml +++ b/.github/workflows/cmangos-windows-build.yml @@ -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/discord-webhook-notify@v1.1.1 - 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 }}