diff --git a/.github/workflows/discord-messages.yml b/.github/workflows/discord-messages.yml new file mode 100644 index 000000000..6672fd671 --- /dev/null +++ b/.github/workflows/discord-messages.yml @@ -0,0 +1,24 @@ +name: notify-discord + +on: + push: + branches: + - develop + +jobs: + notify: + runs-on: ubuntu-latest + + steps: + - name: Actions for Discord + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 + with: + args: ${{ env.DISCORD_MESSAGE }} + + - name: Error Alert + if: failure() + uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 + with: + args: '🚨 An error occurred while running the workflow. test' \ No newline at end of file