From 09523f59a01a3010c4f5ac96603d7386e0cb86ef Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 12 Apr 2026 17:52:18 +0300 Subject: [PATCH] fix: pull request update notification --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ea1161..b8c4e04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -209,7 +209,9 @@ jobs: notify_diffs: runs-on: ubuntu-latest - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: | + (github.event_name == 'push' && github.ref == 'refs/heads/master') || + (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) needs: parse steps: - name: Checkout repository @@ -231,10 +233,7 @@ jobs: TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID_UPDATE }} run: | - LAST_COMMIT_MESSAGE=$(git log -1 --pretty=%B) - if [[ "$LAST_COMMIT_MESSAGE" == Merge* ]]; then - python3 update_diffs.py --token ${{ secrets.TELEGRAM_BOT_TOKEN }} --chat_id ${{ secrets.TELEGRAM_CHAT_ID_UPDATE }} --base_commit HEAD~1 - fi + python3 update_diffs.py --token ${{ secrets.TELEGRAM_BOT_TOKEN }} --chat_id ${{ secrets.TELEGRAM_CHAT_ID_UPDATE }} --base_commit HEAD~1 backup: