From 4329685b97cab6cb68080df515cd327c8c44f6c9 Mon Sep 17 00:00:00 2001 From: gh0st | WhisperNode <49853598+gh0stdotexe@users.noreply.github.com> Date: Wed, 5 Apr 2023 00:43:46 -0700 Subject: [PATCH] Add Discord alert bot Workflow --- .../workflows/github-releases-to-discord.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/github-releases-to-discord.yml diff --git a/.github/workflows/github-releases-to-discord.yml b/.github/workflows/github-releases-to-discord.yml new file mode 100644 index 0000000000..5b5969dc7a --- /dev/null +++ b/.github/workflows/github-releases-to-discord.yml @@ -0,0 +1,24 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +on: + release: + types: [published] + +jobs: + github-releases-to-discord: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1.13.0 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + color: "2105893" + username: "Release Changelog" + avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"