From df7ee6bfb10596cceab9fada462e27e7553a6166 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 1 Nov 2024 23:51:38 +0300 Subject: [PATCH] ci: publish release notes to Discord (#422) Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/release-to-discord.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release-to-discord.yaml diff --git a/.github/workflows/release-to-discord.yaml b/.github/workflows/release-to-discord.yaml new file mode 100644 index 00000000..b6f749f1 --- /dev/null +++ b/.github/workflows/release-to-discord.yaml @@ -0,0 +1,20 @@ +on: + release: + types: [published] + +jobs: + github-releases-to-discord: + if: "! contains(github.event.release.tag_name, '-')" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1.16.2 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + color: "2105893" + username: "New Release: Protocol Contracts" + max_description: "4096" + reduce_headings: true + avatar_url: "https://raw.githubusercontent.com/zeta-chain/docs/refs/heads/main/public/img/icons/zetachain/square/white-on-green.png"