From bd102bc1cfebd700e5f6132ab027bb17c91f16a5 Mon Sep 17 00:00:00 2001 From: triwinds Date: Sun, 26 Feb 2023 14:08:52 +0800 Subject: [PATCH] send telegram notification on release --- .github/workflows/release-notify.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release-notify.yml diff --git a/.github/workflows/release-notify.yml b/.github/workflows/release-notify.yml new file mode 100644 index 0000000..a562e5f --- /dev/null +++ b/.github/workflows/release-notify.yml @@ -0,0 +1,24 @@ +name: Release notify + +on: + release: + types: [released] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: send telegram message on release + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + format: markdown + message: | + New release of ${{ github.event.release.tag_name }}: + + ${{ github.event.release.body }} + + Release page: [${{ github.event.release.tag_name }}](${{ github.event.release.html_url }}) \ No newline at end of file