From 3cac7810ae28f836f29ec27e0d2c4dc8ad4cd7cf Mon Sep 17 00:00:00 2001 From: plebeius Date: Sun, 25 Jan 2026 14:00:22 +0800 Subject: [PATCH] Delete notifications.yml using https://github.com/mhkafadar/notifine instead --- .github/workflows/notifications.yml | 93 ----------------------------- 1 file changed, 93 deletions(-) delete mode 100644 .github/workflows/notifications.yml diff --git a/.github/workflows/notifications.yml b/.github/workflows/notifications.yml deleted file mode 100644 index d390b403..00000000 --- a/.github/workflows/notifications.yml +++ /dev/null @@ -1,93 +0,0 @@ -# send notifications to telegram group on commits, releases, issues -name: notifications - -on: - pull_request: - branches: - - master - # push: - # branches: - # - master - release: - types: [published] - issues: - types: [opened] - -jobs: -# push: -# if: ${{ github.event_name == 'push' }} -# runs-on: ubuntu-latest -# strategy: -# matrix: -# commit: ${{ github.event.commits }} -# steps: -# # - name: debug -# # env: -# # DEBUG: ${{ toJSON(matrix.commit) }} -# # run: echo "$DEBUG" - -# # write message to file -# - run: echo "${{ matrix.commit.message }}" >> message.txt -# - run: echo "" >> message.txt -# - run: echo "by ${{ matrix.commit.author.username }}" >> message.txt -# - run: echo "${{ matrix.commit.url }}" >> message.txt -# - run: date -d "${{ matrix.commit.timestamp }}" +"%d/%m/%y at %H:%M" >> message.txt - -# # send message, @plebbit telegram chat id is -1001665335693 -# - name: "telegram notification" -# uses: appleboy/telegram-action@master -# with: -# to: -1001665335693 -# token: ${{ secrets.TELEGRAM_TOKEN }} -# # commit links don't show anything useful in preview -# disable_web_page_preview: true -# format: html -# message_file: message.txt - - release: - if: ${{ github.event_name == 'release' }} - runs-on: ubuntu-latest - steps: - # - name: debug - # env: - # DEBUG: ${{ toJSON(github) }} - # run: echo "$DEBUG" - - # write message to file - - run: echo "${{ github.event.repository.name }} ${{ github.event.release.name }}" >> message.txt - - run: echo "" >> message.txt - - run: echo "${{ github.event.release.body }}" >> message.txt - - run: echo "${{ github.event.release.html_url }}" >> message.txt - - # send message, @plebbit telegram chat id is -1001665335693 - - name: "telegram notification" - uses: appleboy/telegram-action@master - with: - to: -1001665335693 - token: ${{ secrets.TELEGRAM_TOKEN }} - format: html - message_file: message.txt - - issue: - if: ${{ github.event_name == 'issues' }} - runs-on: ubuntu-latest - steps: - # - name: debug - # env: - # DEBUG: ${{ toJSON(github) }} - # run: echo "$DEBUG" - - # write message to file - - run: echo "${{ github.event.issue.title }}" >> message.txt - - run: echo "" >> message.txt - - run: echo "by ${{ github.event.issue.user.login }}" >> message.txt - - run: echo "${{ github.event.issue.html_url }}" >> message.txt - - # send message, @plebbit telegram chat id is -1001665335693 - - name: "telegram notification" - uses: appleboy/telegram-action@master - with: - to: -1001665335693 - token: ${{ secrets.TELEGRAM_TOKEN }} - format: html - message_file: message.txt