From 2fa2f9e96435b88c0d0d254c505de45e9d69d74e Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 11 Aug 2024 17:45:52 +0900 Subject: [PATCH] ci: workflow to ping Discord users when patches are released --- .github/workflows/discord_ping_on_release.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/discord_ping_on_release.yml diff --git a/.github/workflows/discord_ping_on_release.yml b/.github/workflows/discord_ping_on_release.yml new file mode 100644 index 000000000..f9dcbb409 --- /dev/null +++ b/.github/workflows/discord_ping_on_release.yml @@ -0,0 +1,22 @@ +name: Ping Discord on release + +on: + release: + types: [published] + +jobs: + notify-discord: + runs-on: ubuntu-latest + steps: + - uses: sarisia/actions-status-discord@v1 + if: always() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK_URL }} + username: ReVanced Extended + color: 0xff5252 + nodetail: true + notimestamp: true + content: "<@&1271197877724643461>" + title: "Patches `${{ github.event.release.tag_name }}` has been released!" + description: | + Click [here]( ${{github.event.repository.html_url }}/releases/tag/${{ github.event.release.tag_name }}) to read the changelog. \ No newline at end of file