From 2b1f518fabee1d7edbc2d713ffb39c7a27c887e4 Mon Sep 17 00:00:00 2001 From: Andrew <10902965+AndrewR3K@users.noreply.github.com> Date: Sat, 25 Jan 2025 17:34:09 -0800 Subject: [PATCH] Create discord.yml --- .github/workflows/discord.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/discord.yml diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 0000000..d88a064 --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,25 @@ +name: "Release Notification" + +on: + release: + types: [published] + +jobs: + github-releases-to-discord: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1.16.2 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + color: "15844367" + username: "BCC Changelog" + avatar_url: "https://bcc-scripts.com/logo.png" + content: "# BCC-Stables ${{ env.RELEASE_VERSION }} \n\n https://github.com/BryceCanyonCounty/bcc-stables" + footer_timestamp: false + max_description: "4096" + reduce_headings: true