From 5639be9bfff24e608f79fa092be95c9c3f1773d6 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 26 Nov 2024 19:44:52 +0800 Subject: [PATCH] New action GitHub Releases To Discord --- .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 000000000..c916b25d2 --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,25 @@ +name: GitHub Releases To Discord + +on: + release: + types: [published] + +jobs: + github-releases-to-discord: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + github-releases-to-discord-cn: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1 + with: + webhook_url: ${{ secrets.WEBHOOK_URL_CN }}