From 702df1f5da2b4499f19ee9af0b0fb800b1f36d84 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Fri, 29 Nov 2024 13:57:37 -0500 Subject: [PATCH] ci: add github-releases-to-discord --- .github/workflows/post-release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index 650ef3957c..b632e9630c 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -37,6 +37,20 @@ jobs: comment-template: | 🚀 This is included in version {release_link} + github-releases-to-discord: + runs-on: ubuntu-latest + if: ${{ github.event_name != 'workflow_dispatch' }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1 + with: + webhook_url: ${{ secrets.DISCORD_RELEASES_WEBHOOK_URL }} + color: '16777215' + username: 'Payload Releases' + avatar_url: 'https://l4wlsi8vxy8hre4v.public.blob.vercel-storage.com/discord-bot-logo.png' + update_templates: if: false # Still needs some troubleshooting runs-on: ubuntu-latest